Skip to content

Commit a6d94b5

Browse files
Bold Create Agentsuriyaprakasamr
andcommitted
Enable Ribbon mode in getting-started samples
Co-authored-by: suriyaprakasamr <302142999+suriyaprakasamr@users.noreply.github.com> Bold-Create-Session: https://app.boldcreate.ai/agent/chat/?threadId=bd5db0a8-c79d-49f3-8c63-6229d50e5c8c
1 parent 12acaf7 commit a6d94b5

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

  • getting-started-nextjs/ej2-nextjs-documenteditor/app
  • getting-started
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
2-
import { DocumentEditorContainerComponent, Toolbar } from '@syncfusion/ej2-react-documenteditor';
2+
import { DocumentEditorContainerComponent, Toolbar, Ribbon } from '@syncfusion/ej2-react-documenteditor';
33

4-
DocumentEditorContainerComponent.Inject(Toolbar);
4+
DocumentEditorContainerComponent.Inject(Toolbar, Ribbon);
55

66
export default function Home() {
77
return (
@@ -10,7 +10,8 @@ export default function Home() {
1010
height="590px"
1111
// Use the following service URL only for demo purposes
1212
serviceUrl="https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/"
13-
enableToolbar={true}>
13+
enableToolbar={true}
14+
toolbarMode="Ribbon">
1415
</DocumentEditorContainerComponent>
1516
)
16-
}
17+
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { DocumentEditorContainerComponent, Toolbar } from '@syncfusion/ej2-react-documenteditor';
1+
import { DocumentEditorContainerComponent, Toolbar, Ribbon } from '@syncfusion/ej2-react-documenteditor';
22

3-
DocumentEditorContainerComponent.Inject(Toolbar);
3+
DocumentEditorContainerComponent.Inject(Toolbar, Ribbon);
44

55
function App() {
66
return (
@@ -10,8 +10,9 @@ function App() {
1010
// Use the following service URL only for demo purposes
1111
serviceUrl="https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/"
1212
enableToolbar={true}
13+
toolbarMode="Ribbon"
1314
/>
1415
);
1516
}
1617

17-
export default App;
18+
export default App;
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import {
22
DocumentEditorContainerComponent,
3-
Toolbar
3+
Toolbar,
4+
Ribbon
45
} from '@syncfusion/ej2-react-documenteditor';
56

6-
DocumentEditorContainerComponent.Inject(Toolbar);
7+
DocumentEditorContainerComponent.Inject(Toolbar, Ribbon);
78

89
function App() {
910
return (
@@ -13,8 +14,9 @@ function App() {
1314
// Use the following service URL only for demo purposes
1415
serviceUrl="https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/"
1516
enableToolbar={true}
17+
toolbarMode="Ribbon"
1618
/>
1719
);
1820
}
1921

20-
export default App;
22+
export default App;

0 commit comments

Comments
 (0)