Hiding TinyMCE with jQuery
I have a TinyMCE textarea inside of #container When I use $('#container').hide() and then $('#container').show() , tinyMCE throws: Cannot read property 'selection' of undefined I'm using the jquery plugin, so this is how I set it up: $('#container textarea').tinymce({ /* options */ }); What should I be doing differently? The correct command to use here is // editor_id is the id of your textarea and // tinymce will use this id to uniquely identify this editor instance editor_id = $("#container textarea").attr('id'); tinymce.get(editor_id).hide(); to make it visible again use tinymce.get(editor