Document Server FAQ:

Customizing questions

Expand all

Collapse all

How to whitelabel ONLYOFFICE Document Server?

The below options can be edited for whitelabeling your version of Document Server, changing the information which will be displayed at the About page and visible to all editor users.

Please note that changing these options is only available to the ONLYOFFICE Developer Edition users.

  • editorConfig.customization.customer options:
    • editorConfig.customization.customer.address is used to specify the postal address of the company or person;
    • editorConfig.customization.customer.info is used to give some additional information about the company or person;
    • editorConfig.customization.customer.logo is used to specify the path to the image logo;
    • editorConfig.customization.customer.logoDark is used to specify the path to the image logo for the dark theme;
    • editorConfig.customization.customer.mail is used to specify the email address of the company or person;
    • editorConfig.customization.customer.name is used to specify the name of the company or person who gives access to the editors or the editor authors;
    • editorConfig.customization.customer.www is used to specify the home website address of the company or person.
  • editorConfig.customization.logo options:
    • editorConfig.customization.logo.image is used to specify the path to the image file used to show in the common work mode (i.e. in view and edit modes for all editors) or in the embedded mode;
    • editorConfig.customization.logo.imageDark is used to specify the path to the image file used for the dark theme;
    • editorConfig.customization.logo.url is used to specify the absolute URL which will be used when someone clicks the logo image (you can leave as an empty string or null to make the logo not clickable).

With all the above fields filled, the customization configuration will look like this:

  1. var docEditor = new DocsAPI.DocEditor("placeholder", {
  2. "editorConfig": {
  3. "customization": {
  4. "customer": {
  5. "address": "My City, 123a-45",
  6. "info": "Some additional information",
  7. "logo": "https://example.com/logo-big.png",
  8. "logoDark": "https://example.com/dark-logo-big.png",
  9. "mail": "john@example.com",
  10. "name": "John Smith and Co.",
  11. "www": "example.com"
  12. },
  13. "logo": {
  14. "image": "https://example.com/logo.png",
  15. "imageDark": "https://example.com/dark-logo.png",
  16. "url": "https://www.onlyoffice.com"
  17. },
  18. ...
  19. },
  20. ...
  21. },
  22. ...
  23. });

Further information about the customization can be found at this page.

How to change the default language of the Document Server interface?

If the interface language is present in the list of available Document Server languages, you can simply use the editorConfig.lang property in the configuration file to set it to the necessary locale, like this:

  1. var docEditor = new DocsAPI.DocEditor("placeholder", {
  2. "editorConfig": {
  3. "lang": "de",
  4. ...
  5. },
  6. ...
  7. });

If the language is not available and you want to translate it or have already translated it to your own language, please see this article to find out how to install it to your Document Server.

Further information about the language settings can be found at this page.

How to enable or disable the chat and/or the comments panel in the editors?

The chat and comments are enabled by default. To disable them use the document.permissions.comment and document.permissions.chat parameters with the values set to false in the configuration file respectively:

  1. var docEditor = new DocsAPI.DocEditor("placeholder", {
  2. "document": {
  3. "permissions": {
  4. "chat": false,
  5. "comment": false,
  6. ...
  7. },
  8. ...
  9. },
  10. ...
  11. });

This will disable both the Chat and Comments buttons and their functionality.

Further information about the customization can be found at this page.

How to customize the editors interface, e.g. adjust the top toolbar view?

You can either display the full top toolbar or its compact version. To control this the editorConfig.customization.compactToolbar parameter is used. With the default false value the top toolbar will have its usual view. If you want to display its compact variant, the configuration will have to look like this:

  1. var docEditor = new DocsAPI.DocEditor("placeholder", {
  2. "editorConfig": {
  3. "customization": {
  4. "compactToolbar": true,
  5. ...
  6. },
  7. ...
  8. },
  9. ...
  10. });

Further information about the customization can be found at this page.

How to view and change the document additional parameters, e.g. its owner or uploading date?

The document owner and uploading date is affected by the document.info.owner and document.info.uploaded parameter respectively. You can pass these settings from some database of yours to the document configuration file the following way:

  1. var docEditor = new DocsAPI.DocEditor("placeholder", {
  2. "document": {
  3. "info": {
  4. "owner": "John Smith",
  5. "uploaded": "2010-07-07 3:46 PM",
  6. },
  7. ...
  8. },
  9. ...
  10. });

This values will be displayed in the File > Document Info… menu option.

Further information about these settings can be found at this page.

How to optimize the appearance of editors for a desktop computer, or for a mobile device, or for embedding into a web page?

There are three main appearances of the editors, optimized for different use:

  • desktop, which is optimized for the display in desktop computer browsers:

    1. var docEditor = new DocsAPI.DocEditor("placeholder", {
    2. "type": "desktop",
    3. ...
    4. });
  • mobile, which is optimized for the display in mobile device browsers:

    1. var docEditor = new DocsAPI.DocEditor("placeholder", {
    2. "type": "mobile",
    3. ...
    4. });
  • embedded, which is optimized for the embedding the documents into a website page:

    1. var docEditor = new DocsAPI.DocEditor("placeholder", {
    2. "type": "embedded",
    3. ...
    4. });

You can use any appearance for mobile devices or to embed the document to your webpage, but it is more logical to use the specific display type.

Further information about the display type can be found at this page.

How to connect plugins to Document Server so that they become visible for all editor users?

To enable plugins for all Document Server users, you need the following:

  • Get the plugins (this can be done using our plugin repository on GitHub or you can write your own plugin).
  • Put the plugins to the folder accessible by Document Editor.
  • Change the configuration file the following way:
  1. var docEditor = new DocsAPI.DocEditor("placeholder", {
  2. "editorConfig": {
  3. "plugins": {
  4. "autostart": [
  5. "asc.{0616AE85-5DBE-4B6B-A0A9-455C4F1503AD}",
  6. "asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}",
  7. ...
  8. ],
  9. "pluginsData": [
  10. "https://example.com/plugin1/config.json",
  11. "https://example.com/plugin2/config.json",
  12. ...
  13. ]
  14. },
  15. ...
  16. },
  17. ...
  18. });

Where editorConfig.plugins.autostart is the array of the GUIDs for the plugins that you want to start automatically when Document Server is started (as defined in the plugin config.json file), and editorConfig.plugins.pluginsData is the array of the config.json configuration files for all the plugins that you want to be available to Document Server users.

Further information about enabling the plugins for Document Server can be found at this page.