Status |
---|
| |
---|
colour | Yellow |
---|
title | 릴리즈 2.3.0 이상 |
---|
|
문서가 열린 후(임포트 이후) 발생합니다.
...
This event occurs after a document is opened (imported).
Adding Event: Using API
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var editor = new SynapEditor(editorId, editorConfig, html);
editor.setEventListener('afterOpenDocument', function (e) {
}); |
...
Adding Event:
...
Function
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorAfterOpenDocument(e) {
}
new SynapEditor(editorId, editorConfig, html); |
...
Adding Event: When the Editor is initialized
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
afterOpenDocument: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
...
Object Delivered through Functions
In the form of parameter e delivered through functions
Code Block |
---|
|
{
editor: SynapEditor,
eventType: 'afterOpenDocument',
cancelable: true,
returnValue: null,
fileType: 'WORD', // 파일File 타입type ('HTML', 'WORD', 'CELL', ...)
path: '/upload/path/filename.docx', // 임포트Import 경로path
...... // 서버로부터 전달받은 DataData transferred from the server (importPath, serializedData, .....)
} |
...