What I think you'd need to do here is have a function which adds all your common event handlers and call that, passing in the Editor instance, just after the instance has been created.
The events happen on the instance and they don't propagate, so the only way to add such a feature would be to have a static storage space that Editor would look for and run. I think I prefer the function option at this time.
Answers
What I think you'd need to do here is have a function which adds all your common event handlers and call that, passing in the Editor instance, just after the instance has been created.
The events happen on the instance and they don't propagate, so the only way to add such a feature would be to have a static storage space that Editor would look for and run. I think I prefer the function option at this time.
Allan
Agreed! Will use the function approach, Allan.