Forum Post: RE: TinyMCE customization

  • Thread starter Thread starter Meryk
  • Start date Start date
Status
Not open for further replies.
M

Meryk

Guest
Hi, Thank you for the last reply. I got some customization working from tinyMceInitCallback() function. Now I am trying to detect the onchange of the active editor to do some more changes, as all I am writing in that callback function is done on load of tinymce page. I added this in tinymce.init() : setup : function(ed) { ed.onChange.add(function(ed, l) { alert('Editor contents was modified. Contents: ' + l.content); }); }, And it does not alert anything on change. I also tried this, from the cllback function: tinyMCE.activeEditor.dom.get('tinymce').addEventListener('mouseenter', function test(event){ alert('mouseenter firing'); alert(event.target.tagName); }); Doesnt do anything. I tried the classic onchange as well, nothing.. Any ideas please how to achieve that ? Just as a reminder, the tinyMceInitCallback() function is in a hosted file, that I am calling in teh header of the application. Thank you Mery

Continue reading...
 
Status
Not open for further replies.
Back
Top