Detecting tinyMCE textareas with JQUERY
问题 On some of our forms we convert our textareas over to tinyMCE textareas. How can I tell in jquery if a given textarea has been converted? I've notice that tinyMCE will change the display of my original textarea to none upon init and then creates an adjacent span with a class of mceEditor, but the follow jquery statements never seems to find it. if ( $(formElm).siblings("span .mceEditor").size() > 0) { ...do this}; or if( $(formElm).parent().find("span .mceEditor").length > 0 ) {...do this};