How can I determine what mode the editor is in and when it changes?
To determine what mode the editor is currently in, you can use the getUserSetting(‘editor’) in JavaScript, which returns either “html” or “tinymce”. To determine when the editor mode is switched, you can use the jQuery click event handler on the #content-tmce and #content-html elements, which are the editor type switching buttons: jQuery( ‘#content-tmce’ ).click( function() … Read more