In my quest to enhance the functionality of an editor instance within TinyMCE (via a plugin), I have encountered a roadblock with regards to implementing onMouseOver and onMouseOut events. It appears that these specific events are not natively supported by TinyMCE's API. My intention is to have a control surface when the user hovers over the element to switch to "read-only" mode, among other potential actions. Is it necessary for me to manually inject code into TinyMCE in order to achieve this, or is there a hidden method through which this can be accomplished? And if manual coding is indeed required, what is the rationale behind the lack of support for these events in the API?
For the sake of clarity for those who may share the same degree of confusion as some previous respondents, my main objective is to associate an event with the TinyMCE.Editor instance generated by the TinyMCE library (the class that is supplied to the callback function within the setup parameter of TinyMCE.init). In essence, I aspire to execute the following:
tinyMCE.init({
.
.
.
setup : function(ed) {
TinyMCEReadOnlySetup(ed,true);
ed.onMouseOver.add(ShowButton(ed));
ed.onMouseOut.add(HideButton(ed));
},
.
.
.
});
However, the variable 'ed' (which represents an instance of TinyMCE.Editor) does not seem to facilitate the addition of MouseOver events in the typical manner seen with other similar events.