I already searched a lot but by google-fu'ing don't get me any results :(
I have an already initialized tinyMCE
editor which initialization process I cannot control, so code like the following don't work at all:
tinyMCE.init({
...
setup : function(ed) {
ed.onChange.add(function(ed, l) {
console.debug('Editor contents was modified. Contents: ' + l.content);
});
}
});
Code like the following doesn't work either since the jQuery tinymce plugin isn't defined:
$('textarea').tinymce({
setup: function(ed) {
ed.onClick.add(function(ed, e) {
alert('Editor was clicked: ' + e.target.nodeName);
});
}
});
I mean, it has to be using the tinymce.something
syntax.
How can I bind a callback function to whatever tinyMCE event after tinyMCE is already initialized?