the component, holding the method to be transformed
the name of the method that should be transformed
a callback to be executed when the event is fired
the class that should listen to the event (probably "this")
Optionaloptions: { priority?: PriorityString }(optional) options object for listener priority
A utility function to transform methods of observable CKEditor components into events to listen to. This way, we can hook into function calls in other plugins. This is done by using CKEditor's decorate API.