Skip to content

Commit 4d48383

Browse files
Merge pull request #3892 from syncfusion-content/1043289-documentUpdate
1043289-Update Documentation in React Platform
2 parents cf9ba9a + 56c532a commit 4d48383

3 files changed

Lines changed: 28 additions & 35 deletions

File tree

Document-Processing/Word/Word-Processor/react/how-to/customize-font-family-drop-down.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
layout: post
3-
title: Customize font dropdown in React Document Editor | Syncfusion
4-
description: Learn here all about Customize font family drop down in Syncfusion React Document editor component of Syncfusion Essential JS 2 and more.
3+
title: Customize font dropdown in React DOCX Editor | Syncfusion
4+
description: Learn here all about Customize font family drop down in Syncfusion React Document Editor component of Syncfusion Essential JS 2 and more.
55
control: Customize font family drop down
66
platform: document-processing
77
documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Customize font family drop down in React Document editor component
11+
# Customize font family drop down in React Document Editor component
1212

13-
[React DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/react-docx-editor) (Document Editor) provides an options to customize the font family drop down list values using [`fontfamilies`](https://ej2.syncfusion.com/react/documentation/api/document-editor/documentEditorSettingsModel#fontfamilies) in Document editor settings. Fonts which are added in fontFamilies of [`documentEditorSettings`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#documenteditorsettings) will be displayed on font drop down list of text properties pane and font dialog.
13+
[React Document Editor](https://www.syncfusion.com/docx-editor-sdk/react-docx-editor) (Document Editor) provides options to customize the font family drop-down list values using [`fontFamilies`](https://ej2.syncfusion.com/react/documentation/api/document-editor/documentEditorSettingsModel#fontfamilies) in Document editor settings. Fonts added in the fontFamilies of [`documentEditorSettings`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#documenteditorsettings) will be displayed in the font drop-down list of the Text Properties pane and the Font dialog.
1414

1515
Similarly, you can use [`documentEditorSettings`](https://ej2.syncfusion.com/react/documentation/api/document-editor#documenteditorsettings) property for DocumentEditor also.
1616

@@ -25,7 +25,7 @@ import {
2525
} from '@syncfusion/ej2-react-documenteditor';
2626
DocumentEditorContainerComponent.Inject(Toolbar);
2727
function App() {
28-
// Add required font families to list it in font drop down
28+
// Add the required font families to list them in the font drop-down
2929
let fontFamilies = {
3030
fontFamilies: ['Algerian', 'Arial', 'Calibri', 'Cambria'],
3131
};
@@ -43,8 +43,8 @@ export default App;
4343
ReactDOM.render(<App />, document.getElementById('sample'));
4444
```
4545

46-
> The Web API hosted link `https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/` utilized in the Document Editor's serviceUrl property is intended solely for demonstration and evaluation purposes. For production deployment, please host your own web service with your required server configurations. You can refer and reuse the [GitHub Web Service example](https://github.com/SyncfusionExamples/EJ2-DocumentEditor-WebServices) or [Docker image](https://hub.docker.com/r/syncfusion/word-processor-server) for hosting your own web service and use for the serviceUrl property.
46+
N> The Web API hosted link `https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/` utilized in the Document Editor's serviceUrl property is intended solely for demonstration and evaluation purposes. For production deployment, please host your own web service with your required server configurations. You can refer and reuse the [GitHub Web Service example](https://github.com/SyncfusionExamples/EJ2-DocumentEditor-WebServices) or [Docker image](https://hub.docker.com/r/syncfusion/word-processor-server) for hosting your own web service and use for the serviceUrl property.
4747

48-
Output will be like below:
48+
The output will be as shown below:
4949

5050
![Font](../images/font-family.png)

Document-Processing/Word/Word-Processor/react/how-to/customize-ribbon.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
layout: post
3-
title: Customize Ribbon in React Document Editor | Syncfusion
3+
title: Customize Ribbon in React DOCX Editor | Syncfusion
44
description: Learn how to customize the ribbon in Syncfusion React Document Editor - file menu, backstage, tabs, groups, and items.
55
platform: document-processing
66
control: Ribbon Customization
77
documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Customize Ribbon in React Document editor component
11+
# Customize Ribbon in React Document Editor component
1212

13-
The [React DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/react-docx-editor) (Document Editor) provides an extensive and flexible API to customize the built-in ribbon UI. You can:
13+
The [React Document Editor](https://www.syncfusion.com/docx-editor-sdk/react-docx-editor) (Document Editor) provides a rich and flexible API to customize the built-in ribbon UI. You can:
1414

1515
- Customize the File menu.
1616
- Add the Backstage menu instead of File menu.
@@ -22,7 +22,7 @@ Below are detailed examples for each ribbon customization scenario.
2222

2323
## File Menu Customization
2424

25-
Document Editor provides APIs to remove existing File menu items and add new custom items based on your requirements. You can modify the File menu using the [`fileMenuItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#filemenuitems) property.
25+
Document Editor provides APIs to remove existing built-in File menu items and add new custom items based on your requirements. You can modify the File menu using the [`fileMenuItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#filemenuitems) property.
2626

2727
In the example below, the "Open" and "Export" items have been removed from the File Menu Items, and new custom items have been added.
2828

@@ -116,17 +116,17 @@ root.render(<Default />);
116116
```
117117
{% endraw %}
118118
119-
Refer this documentation know more about [`backstage items`](https://ej2.syncfusion.com/documentation/ribbon/backstage)
119+
Refer to this documentation to know more about [`backstage items`](https://ej2.syncfusion.com/documentation/ribbon/backstage)
120120
121121
## Tab Customization
122122
123123
You can customize the ribbon tabs in the Document Editor by showing, hiding, or adding tabs according to your application's requirements.
124124
125125
### Show/Hide Tab
126126
127-
Document editor provides the [`showTab`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/ribbon#showtab) API to show and hide the existing tab using existing `RibbonTabType` and `tabId`.
127+
Document editor provides the [`showTab`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/ribbon#showtab) API to show and hide the existing tab using a `RibbonTabType` and `tabId`.
128128
129-
The following code example how to show/hide existing tab using existing tab type and tab id.
129+
The following code example shows how to show/hide an existing tab using the existing tab type and tab id.
130130
131131
```ts
132132
// To hide the Home tab using the built-in `RibbonTabType`
@@ -302,9 +302,9 @@ You can customize individual items within ribbon groups. This includes showing,
302302
303303
### Show/Hide Item
304304
305-
Using [`showItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/ribbon#showitems) API in Document editor ribbon to enable/disable the existing item. Here, you can specify the item Id or [`RibbonItemInfo`].
305+
Using the [`showItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/ribbon#showitems) API in the Document Editor ribbon to show/hide the existing item. Here, you can specify the item Id or [`RibbonItemInfo`].
306306
307-
The following code example show how to show/hide the item using item Id or [`RibbonItemInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#ribboniteminfo).
307+
The following code example shows how to show/hide the item using item Id or [`RibbonItemInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#ribboniteminfo).
308308
309309
```ts
310310
// To hide the Bold and Italic items using ribbon item information
@@ -319,7 +319,7 @@ container.current.ribbon.showItems('custom_item', false);
319319
320320
### Enable/Disable Item
321321
322-
Using [`enableItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/ribbon#enableitems) API in Document editor ribbon to enable/disable the existing item.
322+
Using the [`enableItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/ribbon#enableitems) API in the Document Editor ribbon to enable/disable the existing item.
323323
324324
```ts
325325
// To disable the underline using ribbon item info
@@ -402,4 +402,4 @@ Explore how to customize the ribbon in the React Document Editor for working wit
402402
403403
## Related Links
404404
405-
- [File menu Customization Demo](https://ej2.syncfusion.com/demos#/material/document-editor/ribbon-customization)
405+
- [File Menu Customization Demo](https://document.syncfusion.com/demos/docx-editor/react/#/tailwind3/document-editor/ribbon-customization)

Document-Processing/Word/Word-Processor/react/how-to/customize-tool-bar.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
layout: post
3-
title: Customize tool bar in React Document editor component | Syncfusion
4-
description: Learn here all about Customize tool bar in Syncfusion React Document editor component of Syncfusion Essential JS 2 and more.
3+
title: Customize tool bar in React DOCX Editor component | Syncfusion
4+
description: Learn here all about Customize tool bar in Syncfusion React Document Editor component of Syncfusion Essential JS 2 and more.
55
control: Customize tool bar
66
platform: document-processing
77
documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Customize tool bar in React Document editor component
11+
# Customize tool bar in React Document Editor component
1212

1313
## How to customize existing toolbar in DocumentEditorContainer
1414

15-
[React DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/react-docx-editor) (Document Editor) Container allows you to customize(add, show, hide, enable, and disable) existing items in a toolbar.
15+
[React Document Editor](https://www.syncfusion.com/docx-editor-sdk/react-docx-editor) (Document Editor) Container allows you to customize (add, show, hide, enable, and disable) existing items in a toolbar.
1616

17-
* Add - New items can defined by [`CustomToolbarItemModel`](https://ej2.syncfusion.com/react/documentation/api/document-editor/customToolbarItemModel/) and with existing items in [`toolbarItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#toolbaritems) property. Newly added item click action can be defined in [`toolbarClick`](https://ej2.syncfusion.com/react/documentation/api/toolbar/clickEventArgs/).
17+
* Add - New items can be defined by [`CustomToolbarItemModel`](https://ej2.syncfusion.com/react/documentation/api/document-editor/customToolbarItemModel) and with existing items in [`toolbarItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#toolbaritems) property. Newly added item click action can be defined in [`toolbarClick`](https://ej2.syncfusion.com/react/documentation/api/toolbar/clickEventArgs).
1818

19-
* Show, Hide - Existing items can be shown or hidden using the [`toolbarItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#toolbaritems) property. Pre-defined toolbar items are available with [`ToolbarItem`](https://ej2.syncfusion.com/react/documentation/api/document-editor/toolbarItem/).
19+
* Show, Hide - Existing items can be shown or hidden using the [`toolbarItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container#toolbaritems) property. Pre-defined toolbar items are available with [`ToolbarItem`](https://ej2.syncfusion.com/react/documentation/api/document-editor/toolbarItem).
2020

21-
* Enable, Disable - Toolbar items can be enabled or disable using [`enableItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/toolbar#enableItems)
21+
* Enable, Disable - Toolbar items can be enabled or disabled using [`enableItems`](https://ej2.syncfusion.com/react/documentation/api/document-editor-container/toolbar#enableItems)
2222

2323
{% raw %}
2424
```ts
@@ -74,16 +74,9 @@ function App() {
7474
function onToolbarClick(args) {
7575
switch (args.item.id) {
7676
case 'save':
77-
//Save the document(Download the document)
77+
//Save the document (Download the document)
7878
container.documentEditor.save('sample', 'Docx');
7979
break;
80-
default:
81-
break;
82-
}
83-
}
84-
85-
function onToolbarClick(args) {
86-
switch (args.item.id) {
8780
case 'Custom':
8881
//Disable image toolbar item.
8982
container.toolbar.enableItems(4, false);
@@ -116,7 +109,7 @@ function App() {
116109
height={'590px'}
117110
serviceUrl="https://ej2services.syncfusion.com/production/web-services/api/documenteditor/"
118111
toolbarItems={items}
119-
toolbarClick={onToolbarClick.bind(this)}
112+
toolbarClick={onToolbarClick}
120113
enableToolbar={true}
121114
/>
122115
</div>
@@ -128,7 +121,7 @@ createRoot(document.getElementById('sample')).render(<App />);
128121
```
129122
{% endraw %}
130123

131-
>Note: Default value of `toolbarItems` is `['New', 'Open', 'Separator', 'Undo', 'Redo', 'Separator', 'Image', 'Table', 'Hyperlink', 'Bookmark', 'TableOfContents', 'Separator', 'Header', 'Footer', 'PageSetup', 'PageNumber', 'Break', 'InsertFootnote', 'InsertEndnote', 'Separator', 'Find', 'Separator', 'Comments', 'TrackChanges', 'Separator', 'LocalClipboard', 'RestrictEditing', 'Separator', 'FormFields', 'UpdateFields','ContentControl']`.
124+
N> Default value of `toolbarItems` is `['New', 'Open', 'Separator', 'Undo', 'Redo', 'Separator', 'Image', 'Table', 'Hyperlink', 'Bookmark', 'TableOfContents', 'Separator', 'Header', 'Footer', 'PageSetup', 'PageNumber', 'Break', 'InsertFootnote', 'InsertEndnote', 'Separator', 'Find', 'Separator', 'Comments', 'TrackChanges', 'Separator', 'LocalClipboard', 'RestrictEditing', 'Separator', 'FormFields', 'UpdateFields','ContentControl']`.
132125

133126
## Online Demo
134127

0 commit comments

Comments
 (0)