Page tree
Skip to end of metadata
Go to start of metadata

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

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

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

e
{
	editor: SynapEditor,
	eventType: 'initialized',
	cancelable: false,
	returnValue: null
}
  • No labels