TeamLab Document Editors API Documentation
config > document
- title - defines the desired title for the viewed or edited document. parameter type: string
- url - defines the url where the source viewed or edited document is stored. parameter type: string
- fileType - defines the type of the file for the source viewed or edited document. parameter type: string
- key - the unique document identifier used for document recognition by the service. In case the known key is sent the document will be taken from the cache. The document url can be used as the key but without the special characters and the size is limited.
parameter type: string
The following characters can be used: 0-9, a-z, A-Z, -._=. The maximal key length is 50 characters.
- vkey - the additional validation key generated based on the key - the encoded combination in which the additional data is stored: permission rights check, user IP, current time, license key. parameter type: string
var docEditor = new DocsAPI.DocEditor('placeholder', { document: { title: 'Example Document Title.doc', url: 'http://www.examplesite.com/url-to-example-document/', fileType: 'doc', key: 'Khirz6zTPdfd7riF8lgCc56Rya_ejbfYJSA=', vkey: 'd0hOVHBKdVVQaTBma1dHa1dBbFJjZz09fHsicGFpZCI6dHJ1ZSwiZXhwaXJlIjoiXC6a1BkZmQ3ck1TNW05NGRxaUY4bGdDYzU2UnlhX2VqYmZZSlNBPSIsImlwIjoiMTg0LjczLjE4OS4xNzMifQ2' } });
Please see other sections for more options: