| Status | ||||||
|---|---|---|---|---|---|---|
|
...
에디터 객체에 URL을 입력 받으면 임포트 할 수 있는 API를 제공합니다.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
const url = '/resource/test.docx';
editor.openDocumentByURL(url); |
...
) |
...
Example:
| Code Block | ||||
|---|---|---|---|---|
| ||||
const pbData = [10, ...]; // 서버에서 받은 PB 데이터 const importPath = ''; // 문서 변환 결과가 있는 경로(브라우저에서 접근할 수 있는 상대경로여야 함.) //에디터 객체 생성 후, initSEModel을 이용하면 됨. const editor = new SynapEditor(...); editor.initSEModel({ ... pbData, importPath, ... }) { ... } |