SCEditor

selectionChanged()

selectionChanged(func) Since: 1.4.1

Binds a handler to the WYSIWYG selection changed event.

This event will fire whenever the selection changes in the WYSIWYG editor.

Syntax

instance.selectionChanged(func);

Parameters

func
Type Function

Function that will be called when the event occurs

Return

Type: sceditor

Example

var textarea = ...;
sceditor.instance(textarea).selectionChanged(function(e) {
	alert('The selection has changed');
});