tinymce.util.Observable
This mixin adds event binding logic to classes. Adapts the EventDispatcher class.
Summary
Methods
| Name | Summary | Defined by | 
|---|---|---|
| Dispatches the specified event by name. Consult the event reference for more details on each event. | ||
| Fires the specified event by name. Consult the event reference for more details on each event. Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use  | ||
| Returns true/false if the object has a event of the specified name. | ||
| Unbinds an event listener to a specific event by name. Consult the event reference for more details on each event. | ||
| Binds an event listener to a specific event by name. Consult the event reference for more details on each event. | ||
| Bind the event callback and once it fires the callback is removed. Consult the event reference for more details on each event. | 
Methods
dispatch()
dispatch(name: String, args: Object?, bubble: Boolean?): ObjectDispatches the specified event by name. Consult the event reference for more details on each event.
fire()
fire(name: String, args: Object?, bubble: Boolean?): ObjectFires the specified event by name. Consult the event reference for more details on each event.
Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use dispatch instead.
hasEventListeners()
hasEventListeners(name: String): BooleanReturns true/false if the object has a event of the specified name.
off()
off(name: String?, callback: Function?): ObjectUnbinds an event listener to a specific event by name. Consult the event reference for more details on each event.
on()
on(name: String, callback: Function, prepend: Boolean): ObjectBinds an event listener to a specific event by name. Consult the event reference for more details on each event.
once()
once(name: String, callback: Function): ObjectBind the event callback and once it fires the callback is removed. Consult the event reference for more details on each event.