셀렉션동작을 한 후에 동작합니다. (커서 찍기, 셀렉션 확장) Status |
---|
colour | Yellow |
---|
title | 릴리즈 2.6.0 이상 |
---|
|
캐럿 이동 및 셀렉션 확장 등의 셀렉션 동작을 할 때 발생합니다.
이벤트 등록: API 사용
...
...
...
...
...
...
...
...
...
...
...
SynapEditor(editorId, editorConfig, html); |
...
editor.setEventListener('onSelection', |
...
...
...
이벤트 등록: 함수방식
...
Code Block |
---|
|
var editorId = 'synapEditor'; |
...
...
...
...
...
...
function SynapEditorOnSelection(e) { |
...
}
new SynapEditor(editorId, editorConfig, html); |
이벤트 등록: 에디터 초기화시 등록
...
...
...
...
...
...
...
...
...
...
...
...
...
{
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
함수로 전달되는 파라미터 e의 형식
...
...
SynapEditor,
eventType: 'onSelection',
isFinish: true, // after 2.15.0, Whether the selection is over
cancelable: false,
returnValue: null,
selection: Selection
} |