tinymce.dom.EventUtils
This class wraps the browsers native event logic with more convenient methods.
Summary
Methods
Name | Summary | Defined by |
---|---|---|
Binds a callback to an event on the specified target. |
||
Removes all bound event listeners for the specified target. This will also remove any bound listeners to child nodes within that target. |
||
Dispatches the specified event on the specified target. |
||
Fires the specified event on the specified target. Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use |
||
Unbinds the specified event by name, name and callback or all events on the target. |
Methods
bind()
bind(target: Object, name: String, callback: Function, scope: Object): Function
Binds a callback to an event on the specified target.
clean()
clean(target: Object): EventUtils
Removes all bound event listeners for the specified target. This will also remove any bound listeners to child nodes within that target.
dispatch()
dispatch(target: Node | window, name: String, args: Object): EventUtils
Dispatches the specified event on the specified target.
fire()
fire(target: Object, name: String, args: Object): EventUtils
Fires the specified event on the specified target.
Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use dispatch
instead.
unbind()
unbind(target: Object, name: String, callback: Function): EventUtils
Unbinds the specified event by name, name and callback or all events on the target.