I’m integrating OnlyOffice Document Editor into my web application and using the JavaScript API for configuration.
My requirement is to run the editor in read-only mode and also hide several UI components to simplify the interface. Specifically, I want to remove:
- File
- View
- Heading
- About
- Page count
- Word count
- Zoom
- Find
I’ve already set readOnly: true, which disables editing, but all these toolbar items are still visible.
What I’ve Tried:
I attempted using the editorConfig.customization.layout option like this:
editorConfig.customization.layout = {
toolbar: {
file: false,
view: false,
plugins: false
},
leftMenu: {
find: false
},
rightMenu: {
comments: false,
chat: false
},
header: {
user: false,
users: false
},
statusBar: {
actionStatus: false
}
};