Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourYellow
title릴리즈 2.4.1 이상

새문서를 한 이후 발생합니다.

...

This event occurs after creating a new document.

Adding Event: Using API

Code Block
languagejs
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var editor = new SynapEditor(editorId, editorConfig, html);

editor.setEventListener('afterNewDocument', function (e) {
});

...

Adding Event:

...

Function

Code Block
languagejs
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';

function SynapEditorAfterNewDocument(e) {
}

new SynapEditor(editorId, editorConfig, html);

...

Adding Event: When the Editor is initialized

Code Block
languagejs
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
    afterNewDocument: function (e) {
    }
};

new SynapEditor(editorId, editorConfig, html, eventListeners);

함수로 전달되는 객체 형태

...

Object Delivered through Functions

In the form of parameter e delivered through functions

Code Block
languagejs
titlee
{
	editor: SynapEditor,
	eventType:  'afterNewDocument',
	cancelable: false,
	returnValue: null
}

...