Status |
---|
colour | Yellow |
---|
title | 릴리즈 Release 2.1.0 이상 |
---|
|
에디터가 초기화 되었을 때 발생합니다.
이벤트 등록: API 사용
initialized 이벤트는 에디터 객체가 생성되기 전에 발생하는 이유로 API 방식을 사용하여 등록할 수 없습니다.
...
This event occurs when the Editor is initialized.
Adding Event: Using API
initialized event cannot be added using API as the event occurs before the editor object is generated.
Adding Event: Function
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorInitialized(e) {
// Event is executed when editor 초기화initialization 완료시is 실행completed (async)
var editor = e.editor;
}
function SynapEditorInitializedSync(e) {
// Event is executed when editor 초기화initialization 완료시is 실행completed (sync)
var editor = e.editor;
}
new SynapEditor(editorId, editorConfig, html); |
...
Adding Event: When the Editor is initialized
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
initialized: function (e) {
var editor = e.editor;
},
initializedSync: function (e) {
var editor = e.editor;
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
...
Object Delivered through Functions
In the form of parameter e delivered through functions
Code Block |
---|
|
{
editor: SynapEditor,
eventType: 'initialized',
cancelable: false,
returnValue: null
} |
...