릴리즈 이상This event occurs when performing a selection operation such as moving the caret and expanding the selection.
Adding Event: Using API
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var editor = new SynapEditor(editorId, editorConfig, html);
editor.setEventListener('onSelection', function (e) {
}); |
Adding Event: Function
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorOnSelection(e) {
}
new SynapEditor(editorId, editorConfig, html); |
Adding Event: When the Editor is initialized
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
onSelection: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
...