• Was wondering, what event or property to check for when some javascript code in your plugin, needs to know whether or not the Visual or Text tab is currently selected ?

Viewing 1 replies (of 1 total)
  • Thread Starter pythoPhpSteve

    (@pythophpsteve)

    Woops, asked too soon, I found on this site:

    var chtml= jQuery(‘#content-html’);
    var ctmce= jQuery(‘#content-tmce’);
    var htmlmode= chtml.hasClass(‘html-active’);

    etc ..

Viewing 1 replies (of 1 total)
  • The topic ‘What event or property to check for – Visual vs Text tab’ is closed to new replies.