SCEditor

blur()

blur() Since: 1.3.6

Triggers the blur event, removing the focus from the editor.

Syntax

instance.blur();

Return

Type: sceditor

blur(func) Since: 1.4.1

Binds a function to the blur event.

This is just a shortcut for:

instance.bind('blur', func[, excludeWysiwyg][, excludeSource]);

Syntax

instance.blur(func[, excludeWysiwyg][, excludeSource]);

Parameters

func
Type Function

Function that will be called when the event occurs

excludeWysiwyg
Type: Boolean
Default: false

If to not bind the event to the WYSIWYG editor.

excludeSource
Type: Boolean
Default: false

If to not bind the event to the source editor.

Return

Type: sceditor

Example

var textarea = ...;
sceditor.instance(textarea).blur(function() {
	alert('Lost focus');
});