Status |
---|
colour | Yellow |
---|
title | Release 2.1.0 or Above |
---|
|
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
} |