This event occurs when performing a selection operation such as moving the caret and expanding the selection.
var editorId = 'synapEditor'; var editorConfig = {}; var html = ''; var editor = new SynapEditor(editorId, editorConfig, html); editor.setEventListener('onSelection', function (e) { }); |
var editorId = 'synapEditor'; var editorConfig = {}; var html = ''; function SynapEditorOnSelection(e) { } new SynapEditor(editorId, editorConfig, html); |
var editorId = 'synapEditor'; var editorConfig = {}; var html = ''; var eventListeners = { onSelection: function (e) { } }; new SynapEditor(editorId, editorConfig, html, eventListeners); |
In the form of parameter e delivered through functions
{ editor: SynapEditor, eventType: 'onSelection', cancelable: false, returnValue: null, selection: Selection } |