Embedded

Description

The embedded section is for the embedded document type only (see the config section to find out how to define the embedded document type). It allows to change the settings which define the behavior of the buttons in the embedded mode.

Parameters
Name Description Type Example
Defines the URL to the document serving as a source file for the document embedded into the web page. string "http://example.com/embedded?doc=exampledocument1.docx"
Defines the URL to the document which will open in full screen mode. string "http://example.com/embedded?doc=exampledocument1.docx#fullscreen"
Defines the URL that will allow the document to be saved onto the user personal computer. string "http://example.com/download?doc=exampledocument1.docx"
Defines the URL that will allow other users to share this document. string "http://example.com/view?doc=exampledocument1.docx"
Defines the place for the embedded viewer toolbar, can be either top or bottom. string "top"
Example
var docEditor = new DocsAPI.DocEditor("placeholder", {
    "editorConfig": {
        "embedded": {
            "embedUrl": "http://example.com/embedded?doc=exampledocument1.docx",
            "fullscreenUrl": "http://example.com/embedded?doc=exampledocument1.docx#fullscreen",
            "saveUrl": "http://example.com/download?doc=exampledocument1.docx",
            "shareUrl": "http://example.com/view?doc=exampledocument1.docx",
            "toolbarDocked": "top"
        },
        ...
    },
    ...
});

Where the example.com is the name of the the server where document manager and document storage service are installed. See the How it works section to find out more on Document Server service client-server interactions.