Customization - White label
The customization section allows you to customize the editor interface according to your needs, as well as change the presence or absence of additional buttons, links, change logos and other details of the editor's owner.
On this page you will find the customization parameters available only for the extended white label license of ONLYOFFICE Docs Developer. To request a quote, please contact our sales team at sales@onlyoffice.com.
about
Type: boolean
Defines if the About menu button is displayed or hidden. The default value is true.
Example: true
features.spellcheck.change
Type: boolean
Defines if the spell checker setting will be displayed or not. Spell checker setting is available in all editor types.
Other fields of the features
object are available for the standard branding and are described here. Only the features.spellcheck.change
field requires additional payment.
Example: true
font
Type: object
Defines the font for the interface elements (buttons, tabs, etc.).
Example:
const font = {
name: "Arial",
size: "11px",
}
font.name
Type: string
The font name.
Example: "Arial"
font.size
Type: string
The font size.
Example: "11px"
layout
Type: object
Defines the parameters that the user can use to hide the interface elements but not to disable features completely (for example, if this functionality is available from other elements such as context menu, or via hotkeys).
Example:
const layout = {
header: {
editMode: true,
save: true,
users: true,
},
leftMenu: {
mode: true,
navigation: true,
spellcheck: true,
},
rightMenu: {
mode: true,
},
statusBar: {
actionStatus: true,
docLang: true,
textLang: true,
},
toolbar: {
collaboration: {
mailmerge: true,
},
draw: true,
file: {
close: true,
info: true,
save: true,
settings: true,
},
home: {},
layout: true,
plugins: true,
protect: true,
references: true,
save: true,
view: {
navigation: true,
},
},
}
layout.header
Type: object
Defines the editor header settings.
Example:
const header = {
editMode: true,
save: true,
users: true,
}
layout.header.editMode
Type: boolean
Defines if a button for switching editor modes will be displayed in the header or not. The default value is true.
Example: true
layout.header.save
Type: boolean
Defines if the Save button in the editor header is displayed or hidden. The default value is true. Please note that this setting is used when the compactHeader parameter is set to false.
Example: true
layout.header.users
Type: boolean
Defines if the button with the editing users is displayed or hidden. The default value is true.
Example: true
layout.leftMenu
Type: object | boolean
Defines the left menu settings. If this parameter is a boolean value, then it specifies whether the left menu will be displayed or hidden. The default value is true.
Example:
const leftMenu = {
mode: true,
navigation: true,
spellcheck: true,
}
layout.leftMenu.mode
Type: boolean
Defines the initial value of the left panel visibility - displayed or hidden. It is used for the Left panel menu option on the View tab. The default value is true.
Example: true
layout.leftMenu.navigation
Type: boolean
Defines if the Navigation button is displayed or hidden. The default value is true. This parameter will only be available for the document editor.
Example: true
layout.leftMenu.spellcheck
Type: boolean
Defines if the Spellcheck button is displayed or hidden. The default value is true. This parameter will only be available for the spreadsheet editor.
Example: true
layout.rightMenu
Type: object | boolean
Defines the right menu settings. If this parameter is a boolean value, then it specifies whether the right menu will be displayed or hidden. The default value is true.
Example:
const rightMenu = {
mode: true,
}
layout.rightMenu.mode
Type: boolean
Defines the initial value of the right panel visibility - displayed or hidden. It is used for the Right panel menu option on the View tab. The default value is true.
Example: true
layout.statusBar
Type: object | boolean
Defines the status bar settings. If this parameter is a boolean value, then it specifies whether the status bar will be displayed or hidden. The default value is true.
Example:
const statusBar = {
actionStatus: true,
docLang: true,
textLang: true,
}
layout.statusBar.actionStatus
Type: boolean
Defines if an action status is displayed or hidden. The default value is true.
Example: true
layout.statusBar.docLang
Type: boolean
Defines if a button for choosing the document language is displayed or hidden. The default value is true. This parameter will only be available for the document editor and the presentation editor.
Example: true
layout.statusBar.textLang
Type: boolean
Defines if a button for choosing the text language is displayed or hidden. The default value is true. This parameter will only be available for the document editor and the presentation editor.
Example: true
layout.toolbar
Type: object | boolean
Defines the toolbar settings. If this parameter is a boolean value, then it specifies whether the toolbar will be displayed or hidden. The default value is true.
Example:
const toolbar = {
collaboration: {
mailmerge: true,
},
draw: true,
file: {
close: true,
info: true,
save: true,
settings: true,
},
home: {},
layout: true,
plugins: true,
protect: true,
references: true,
save: true,
view: {
navigation: true,
},
}
layout.toolbar.collaboration
Type: object | boolean
Defines the Collaboration tab settings. If this parameter is a boolean value, then it specifies whether the Collaboration tab will be displayed or hidden. The default value is true.
Example:
const collaboration = {
mailmerge: true,
}
layout.toolbar.collaboration.mailmerge
Type: boolean
Defines if the button for choosing the mail merge base is displayed or hidden. The default value is true.
Example: true
layout.toolbar.draw
Type: boolean
Defines if the Draw tab is displayed or hidden. The default value is true.
Example: true
layout.toolbar.file
Type: object | boolean
Defines the File tab settings. If this parameter is a boolean value, then it specifies whether the File tab will be displayed or hidden. The default value is true.
Example:
const file = {
close: true,
info: true,
save: true,
settings: true,
}
layout.toolbar.file.close
Type: boolean
Defines if the Close menu option is displayed or hidden. The default value is true.
Example: true
layout.toolbar.file.info
Type: boolean
Defines if the Document info option is displayed or hidden. The default value is true.
Example: true
layout.toolbar.file.save
Type: boolean
Defines if the Save option is displayed or hidden. The default value is true.
Example: true
layout.toolbar.file.settings
Type: boolean
Defines if the Advanced settings option is displayed or hidden. The default value is true.
Example: true
layout.toolbar.home
Type: object
Defines the Home tab settings. This tab cannot be hidden.
Example: {}
layout.toolbar.home.mailmerge
Type: boolean
Defines if the button for choosing the mail merge base is displayed or hidden. This parameter is deprecated, please use the toolbar.collaboration.mailmerge parameter instead.
Example: true
layout.toolbar.layout
Type: boolean
Defines if the Layout tab is displayed or hidden. This parameter will only be available for the document editor and the spreadsheet editor. The default value is true.
Example: true
layout.toolbar.plugins
Type: boolean
Defines if the Plugins tab is displayed or hidden. The default value is true.
Example: true
layout.toolbar.protect
Type: boolean
Defines if the Protection tab is displayed or hidden. The default value is true.
Example: true
layout.toolbar.references
Type: boolean
Defines if the References tab is displayed or hidden. This parameter will only be available for the document editor. The default value is true.
Example: true
layout.toolbar.save
Type: boolean
Defines if the Save button on the toolbar is displayed or hidden. The default value is true. Please note that this setting is used when the compactHeader parameter is set to true.
Example: true
layout.toolbar.view
Type: object | boolean
Defines the View tab settings. If this parameter is a boolean value, then it specifies whether the View tab will be displayed or hidden. The default value is true.
Example:
const view = {
navigation: true,
}
layout.toolbar.view.navigation
Type: boolean
Defines if the Navigation button is displayed or hidden. The default value is true. This parameter will only be available for the document editor.
Example: true
leftMenu
Type: boolean
Defines if the left menu panel is displayed or hidden. The default value is true.
Starting from version 7.1, please use the layout.leftMenu parameter instead.
Example: true
loaderLogo
Type: string
Defines the path to the image logo which will be displayed while the document is being loaded (there are no special recommendations for this file, but it would be better if it were in .png format with transparent background). The image will be proportionally resized to the height of 160 pixels when displayed in the editors.
Example: https://example.com/loader-logo.png
loaderName
Type: string
Defines the text which will be displayed while the document is being loaded.
Example: "The document is loading, please wait..."
rightMenu
Type: boolean
Defines if the right menu panel is displayed or hidden. The default value is true.
Starting from version 7.1, please use the layout.rightMenu parameter instead.
Example: true
statusBar
Type: boolean
Defines if the status bar is displayed or hidden. The default value is true.
Starting from version 7.1, please use the layout.statusBar parameter instead.
Example: true
toolbar
Type: boolean
Defines if the top toolbar is displayed or hidden. The default value is true.
Starting from version 7.1, please use the layout.toolbar parameter instead.
Example: true
Example
const docEditor = new DocsAPI.DocEditor("placeholder", {
editorConfig: {
customization: {
about: true,
features: {
spellcheck: {
change: true,
},
},
font: {
name: "Arial",
size: "11px",
},
layout: {
header: {
editMode: true,
save: true,
users: true,
},
leftMenu: {
mode: true,
navigation: true,
spellcheck: true,
},
rightMenu: {
mode: true,
},
statusBar: {
actionStatus: true,
docLang: true,
textLang: true,
},
toolbar: {
collaboration: {
mailmerge: true,
},
draw: true,
file: {
close: true,
info: true,
save: true,
settings: true,
},
home: {},
layout: true,
plugins: true,
protect: true,
references: true,
save: true,
view: {
navigation: true,
},
},
},
loaderLogo: "https://example.com/loader-logo.png",
loaderName: "The document is loading, please wait...",
},
},
})
The example.com is the name of the server where document manager and document storage service are installed. See the How it works section to find out more on ONLYOFFICE Docs service client-server interactions.