문서를 편집한 이후 발생합니다.
var editorId = 'synapEditor'; var editorConfig = {}; var html = ''; var editor = new SynapEditor(editorId, editorConfig, html); editor.setEventListener('afterEdit', function (e) { }); |
var editorId = 'synapEditor'; var editorConfig = {}; var html = ''; function SynapEditorAfterEdit(e) { } new SynapEditor(editorId, editorConfig, html); |
var editorId = 'synapEditor'; var editorConfig = {}; var html = ''; var eventListeners = { afterEdit: function (e) { } }; new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 파라미터 e의 형식
{ editor: SynapEditor, eventType: 'afterEdit', actionName: 'insertText', // edit action name args: any[], // after 2.15.0, Arguments used for editing. beforeSelection: Selection, // after 2.15.0, Selection before editing. cancelable: false, returnValue: null } |