문서가 열린 후(임포트 이후) 발생합니다.
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var editor = new SynapEditor(editorId, editorConfig, html);
editor.setEventListener('afterOpenDocument', function (e) {
}); |
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorAfterOpenDocument(e) {
}
new SynapEditor(editorId, editorConfig, html); |
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
afterOpenDocument: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 파라미터 e의 형식
{
editor: SynapEditor,
eventType: "afterOpenDocument",
cancelable: true,
returnValue: null,
fileType: "WORD", // 파일 타입 ("HTML", "WORD", "CELL", ...)
path: "/upload/path/filename.docx", // 임포트 경로
...... // 서버로부터 전달받은 Data (importPath, serializedData, .....)
} |