API to import document when URL is entered as Editor object.
Name | Type | Description |
|---|---|---|
| url | string | Document URL |
const url = '/resource/test.docx'; editor.openDocumentByURL(url); |
Transfer result data of converting documents in the server (pbData, importPath) when the Editor is initialized.
const pbData = [10, ...]; // PB data received from the server
const importPath = ''; // Path in which the document conversion result exists (it shall be relative path to which the browser can access.)
//Use initSEModel after generating Editor object.
const editor = new SynapEditor(...);
editor.initSEModel({
...
pbData,
importPath,
...
}) {
...
} |