Skip to content

Commit 66b8bc8

Browse files
Merge pull request #2082 from syncfusion-content/1002931-RibbonCSSD
1002931: Update the CSS references for Ribbon mode
2 parents e0a398b + ffc41cb commit 66b8bc8

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

Document-Processing/Word/Word-Processor/angular/ribbon.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,28 @@ You can switch between the classic **Toolbar** and the new **Ribbon** UI, and yo
1616

1717
## Enable Ribbon Mode
1818

19-
To enable Ribbon in Angular Document Editor, use the [`toolbarMode`](https://ej2.syncfusion.com/angular/documentation/api/document-editor-container/#toolbarmode) property of `DocumentEditorContainer`. The available toolbar modes are:
19+
To enable Ribbon in Angular Document Editor, use the [`toolbarMode`](https://ej2.syncfusion.com/angular/documentation/api/document-editor-container/index-default#toolbarmode) property of `DocumentEditorContainer`. The available toolbar modes are:
2020

2121
- **'Toolbar'** - The traditional toolbar UI.
2222
- **'Ribbon'** - The Ribbon UI, which provides a tabbed interface with grouped commands.
2323

2424
By default, `toolbarMode` is `Toolbar`.
2525

26+
To use Ribbon mode in the Document Editor, include the necessary CSS files from the **../node_modules/@syncfusion** package folder. This can be referenced in [src/styles.css] using following code.
27+
28+
```css
29+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
30+
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
31+
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
32+
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
33+
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
34+
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
35+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
36+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
37+
@import '../node_modules/@syncfusion/ej2-angular-documenteditor/styles/material.css';
38+
@import '../node_modules/@syncfusion/ej2-ribbon/styles/material.css';/* Required for Ribbon */
39+
```
40+
2641
The following code shows the how to enable the `Ribbon` in Document Editor.
2742

2843
```typescript

Document-Processing/Word/Word-Processor/react/ribbon.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ To enable Ribbon in React Document Editor, use the [`toolbarMode`](https://ej2.s
2323

2424
By default, `toolbarMode` is `Toolbar`.
2525

26+
To use Ribbon mode, add Document Editor component and its dependent component styles available in **../node_modules/@syncfusion** package folder. This can be added as reference in **src/App.css**.
27+
28+
```css
29+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
30+
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
31+
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
32+
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
33+
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
34+
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
35+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
36+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
37+
@import "../node_modules/@syncfusion/ej2-documenteditor/styles/material.css";
38+
@import '../node_modules/@syncfusion/ej2-ribbon/styles/material.css';/* Required for Ribbon */
39+
```
40+
2641
The following code shows the how to enable the `Ribbon` in Document Editor.
2742

2843
{% raw %}

Document-Processing/Word/Word-Processor/vue/ribbon.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ To enable Ribbon in Document Editor, use the [`toolbarMode`](https://ej2.syncfus
2323

2424
By default, `toolbarMode` is `Toolbar`.
2525

26+
To use Ribbon mode, add Document Editor component and its dependent component styles available in **../node_modules/@syncfusion** package folder. This can be added as reference in **src/App.vue**.
27+
28+
```css
29+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
30+
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
31+
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
32+
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
33+
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
34+
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
35+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
36+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
37+
@import "../node_modules/@syncfusion/ej2-documenteditor/styles/material.css";
38+
@import '../node_modules/@syncfusion/ej2-ribbon/styles/material.css';/* Required for Ribbon */
39+
```
40+
2641
The following code shows the how to enable the `Ribbon` in Document Editor.
2742

2843
{% tabs %}

0 commit comments

Comments
 (0)