Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

릴리즈 2.3.0 이상

API to import document by entering URL in the Editor object.


Parameters:

Name

Type

Description

urlstringDocument URL


Example:

const url = '/resource/test.docx';
editor.openDocumentByURL(url);



Note) Editor Initialization through Document Conversion Result

Transfer result data of converting documents in the server (pbData, importPath) when the Editor is initialized.

Example:

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,
   ...
}) {
   ...
}







  • No labels