Page tree

Versions Compared

Key

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

이벤트

...

이름

  • initialized

  • beforeUploadImage

  • afterUploadImage
  • beforeUploadVideo

  • afterUploadVideo
  • beforeUploadFile

  • afterUploadFile

이벤트 등록 

에디터 초기화시 등록

1

var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
    '이벤트이름': function (e) {
    }
};

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

API 사용

editor.setEventListener()

이벤트를 등록 할 때 사용하는 API입니다.

1
2

editor.setEventListener('이벤트이름'function(event) {
});


이벤트 해제

editor.removeEventListener()

editor.setEventListener : 등록한 이벤트를 제거 할 때 사용하는 API 입니다.

1

editor.removeEventListener('이벤트이름')

1. 초기화 이벤트

Status
title릴리즈 2.1.0 이상

...