Collapse all
There are three main appearances of the editors, optimized for different use:
You can embed the document with any appearance to your webpage, but it is more logical to use the specific embedded display type with only main controls for the editors displayed for the document within a website page.
That is why the type should be set to embedded and the configuration file will look like this:
var docEditor = new DocsAPI.DocEditor("placeholder", { "type": "embedded", ... });
Further information about the display type can be found at this page.
The embedded mode allows to display the document with only three control buttons: Download, Share and Embed. You can change the behavior of these buttons the following way:
var docEditor = new DocsAPI.DocEditor("placeholder", { "editorConfig": { "embedded": { "embedUrl": "https://example.com/embedded?doc=exampledocument1.docx", "saveUrl": "https://example.com/download?doc=exampledocument1.docx", "shareUrl": "https://example.com/view?doc=exampledocument1.docx", ... }, ... }, ... });
Where 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.
To remove any of these buttons simply do not include the corresponding parameter into the configuration file.
Further information about the embedding parameters can be found at this page.