- Enable Ribbon Mode
- Ribbon Layouts
- See Also
Contact Support
Ribbon in ASP.NET CORE Document Editor Control
3 Jul 20251 minute to read
The Document Editor provides a modern Ribbon interface similar to Microsoft Word’s interface. This Ribbon UI provides an efficient and intuitive way to access editing features, organizing commands within well-structured tabs and groups to enhance your document editing experience. Additionally, the Ribbon interface supports contextual tabs. Contextual tabs appear only when certain elements, such as tables, images, or headers/footers, are selected in the document.
You can switch between the classic Toolbar and the new Ribbon UI, and you can also choose between Classic and Simplified ribbon layouts.
Enable Ribbon Mode
To enable Ribbon in Document Editor, use the toolbarMode
property of DocumentEditorContainer
. The available toolbar modes are:
- ‘Toolbar’ - The traditional toolbar UI.
- ‘Ribbon’ - The Ribbon UI, which provides a tabbed interface with grouped commands.
By default, toolbarMode
is Toolbar
.
The following code shows the how to enable the Ribbon
in Document Editor.
<ejs-documenteditorcontainer id="container" toolbarMode="Ribbon" serviceUrl="api/documenteditor/"></ejs-documenteditorcontainer>
<script>
ej.documenteditor.DocumentEditorContainer.Inject(ej.documenteditor.Toolbar, ej.documenteditor.Ribbon);
</script>
Ribbon Layouts
Document Editor provides two different Ribbon layouts:
- Classic: A traditional Office-like ribbon with detailed grouping and larger icons
- Simplified: A more compact ribbon design with streamlined controls
By default, ribbonLayout
is set to Simplified
.
The following code shows the how to configure the ribbon layout in Document Editor:
<ejs-documenteditorcontainer id="container" toolbarMode="Ribbon" ribbonLayout="Classic" serviceUrl="api/documenteditor/"></ejs-documenteditorcontainer>
<script>
ej.documenteditor.DocumentEditorContainer.Inject(ej.documenteditor.Toolbar, ej.documenteditor.Ribbon);
</script>