SCEditor

unbind()

unbind(events, func) Since: 1.4.1

Unbinds a handler to the specified events.

Unlike the jQuery unbind() method, this method only works with a limited set of supported events.

The supported events are:

  • keyup
  • keydown
  • keypress
  • blur
  • focus
  • contextmenu
  • nodechanged
    When the current node containing the selection changes in WYSIWYG mode
  • valuechanged
    Triggered when the editors value changes (this isn’t called after every key press)
  • selectionchanged When the editors selection changes (triggered a lot)

Syntax

instance.unbind(events, func[, excludeWysiwyg][, excludeSource]);

Parameters

events
Type: String

List of events separated by spaces to unbind the handler from.

func
Type: Function

Function that to unbind

excludeWysiwyg
Type: Boolean
Default: false

If to not unbind the event from the WYSIWYG editor.

excludeSource
Type: Boolean
Default: false

If to not unbind the event from the source editor.

Return

Type: sceditor