Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Content controls can be categorized based on their occurrence in a document as f

## Insert content control

Content control can be inserted using [`insertContentControl`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/editor#insertContentControl) method in editor module.
Content control can be inserted using [`insertContentControl`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/editor#insertcontentcontrol) method in editor module.

{% highlight js %}
//Insert Rich Text Content Control
Expand Down Expand Up @@ -70,7 +70,7 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png;

## Import content control properties

Content control properties can be set using the [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) and imported using the [`importContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#importContentControlData) method.
Content control properties can be set using the [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) and imported using the [`importContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#importcontentcontroldata) method.

{% highlight js %}
var data = [];
Expand All @@ -81,15 +81,15 @@ container.documentEditor.importContentControlData(data);

## Export content control properties

Content control properties can be exported using the [`exportContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#exportContentControlData) method.
Content control properties can be exported using the [`exportContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#exportcontentcontroldata) method.

{% highlight js %}
var contentControlInfos = container.documentEditor.exportContentControlData();
{% endhighlight %}

## Reset content control

Content control properties can be reset using the [`resetContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#resetContentControlData) method.
Content control properties can be reset using the [`resetContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#resetcontentcontroldata) method.

{% highlight js %}
var data = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ N> If a form field already exists in the document with the new name specified, t

## Form Field Shading

You can customize form field shading at the application level using the [`formFieldSettings`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#formFieldSettings) property.
You can customize form field shading at the application level using the [`formFieldSettings`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/formfieldsettings) property.

The example code below demonstrates how to set a custom shading color and how to disable shading (by default, shading is enabled).

Expand Down Expand Up @@ -150,4 +150,4 @@ container.documentEditor.editor.stopProtection('123');

## Online Demo

Explore how to insert and manage form fields in Word documents using the JavaScript (ES5) Document Editor in this live demo [here](https://document.syncfusion.com/demos/docx-editor/javascript-es5/#/material3/document-editor/form-fields.html).
Explore how to insert and manage form fields in Word documents using the JavaScript (ES5) Document Editor in this live demo [here](https://document.syncfusion.com/demos/docx-editor/javascript-es5/#/tailwind3/document-editor/form-fields.html).
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ domainurl: ##DomainURL##

## Localization

The [`Localization`] (https://ej2.syncfusion.com/javascript/documentation/common/localization) library allows you to localize default text content of the Document Editor. The [JavaScript DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/javascript-docx-editor) (Document Editor) component has static text on some features (like find & replace, context-menu, dialogs) that can be changed to other cultures (Arabic, Deutsch, French, etc.) by defining the locale value and translation object. Please refer the sample link [RTL](https://document.syncfusion.com/demos/docx-editor/javascript-es5/#/tailwind3/document-editor/right-to-left.html)
The `Localization` library allows you to localize default text content of the Document Editor. The [JavaScript DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/javascript-docx-editor) (Document Editor) component has static text on some features (like find & replace, context-menu, dialogs) that can be changed to other cultures (Arabic, Deutsch, French, etc.) by defining the locale value and translation object. Please refer the sample link [RTL](https://document.syncfusion.com/demos/docx-editor/javascript-es5/#/tailwind3/document-editor/right-to-left.html)

N> Please refer to the [Locale](https://github.com/syncfusion/ej2-locale).

Expand Down