Forum Discussion

PerBonomi's avatar
7 years ago

Detect changes in the tinyMCE ActiveEditor

Does anyone know how to achieve this?
  • TariqHussain's avatar
    TariqHussain
    7 years ago

    PerBonomi - Try below updated code.  You need to add an event on the active editor. 

    var ed = tinymce.activeEditor; 
    ed.on('change', function(e) {
             console.log('the event object ', e);
    console.log('the editor object ', ed);
    console.log('the content ', ed.getContent()); });