TeamLab Document Editors API Documentation

config > editorConfig

The editorConfig section allows to change the following editor settings:

var docEditor = new DocsAPI.DocEditor('placeholder', {
   editorConfig: {
      mode: 'edit',
      lang: 'en-US',
      canBackToFolder: true,
      canCreateNew: true,
      createUrl: 'http://www.examplesite.com/url-to-example-document/',
      user: {
            id: '78e1e841-8314-48465-8fc0-e7d6451b6475',
            name: 'John Smith'
         },
      recent: [
         {
            title: 'exampledocument1.doc',
            url: 'http://www.examplesite.com/files/exampledocument1.doc',
            folder: 'Example Files'
         },
         ...
      ],
      embedded: {
            embedUrl: 'http://www.examplesite.com/files/?action=embedded&doc=exampledocument1.doc',
            fullscreenUrl: 'http://www.examplesite.com/files/?action=embedded&doc=exampledocument1.doc#fullscreen',
            saveUrl: 'http://www.examplesite.com/files/?action=download&doc=exampledocument1.doc',
            shareUrl: 'http://www.examplesite.com/files/?action=view&doc=exampledocument1.doc',
            toolbarDocked: 'top'
            }
   }
});
Please see other sections for more options: