TeamLab Document Editors API Documentation
config
The config base section allows to change the following editor settings:
- type - defines the platform type used to access the document. Can be:
- desktop - optimized to access the document from a desktop or laptop computer;
- mobile - optimized to access the document from a tablet or a smartphone.
- embedded - specifically formed to be easily embedded into a web page.
- width - defines the document width (100% by default) in the browser window. parameter type: string
- height - defines the document height (100% by default) in the browser window. parameter type: string
- documentType - defines the document type to be opened:
- text - open a text document (.doc, .docx, .odt, .txt) for viewing or editing;
- spreadsheet - open a spreadsheet (.xls, .xlsx, .ods) for viewing or editing;
- presentation - open a presentation (.ppt, .pptx, .odp) for viewing or editing.
var docEditor = new DocsAPI.DocEditor('placeholder', { type: 'desktop', width: '100%', height: '100%', documentType: 'spreadsheet' });
Please see other sections for more options: