blur() Since: 1.3.6
Triggers the blur event, removing the focus from the editor.
Syntax
instance.blur();
Return
Type: sceditor
Triggers the blur event, removing the focus from the editor.
instance.blur();
Type: sceditor
Binds a function to the blur event.
This is just a shortcut for:
instance.bind('blur', func[, excludeWysiwyg][, excludeSource]);
instance.blur(func[, excludeWysiwyg][, excludeSource]);
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.
Type: sceditor
var textarea = ...;
sceditor.instance(textarea).blur(function() {
alert('Lost focus');
});