WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I added a TinyMCE editor to my plugin settings page, but once I move (drag) the metabox, editor's content get lost. (the TinyMCE editor is completely not editable until refresh)

Here is how I added TinyMCE editor:

add_action( 'admin_head', 'add_tinymce_editor' );

function add_tinymce_editor() {
    if ( function_exists( 'wp_tiny_mce' ) ) {
        add_filter('teeny_mce_before_init', create_function( '$a', '
            $a["mode"] = "textareas";
            $a["editor_selector"] = "";
            $a["plugins"] = "safari,inlinepopups,spellchecker";
            return $a;')

        wp_tiny_mce( true );

Any ideas what can cause this bug and how to prevent/fix it?


share|improve this question
up vote 0 down vote accepted

I had a similar problem with radio buttons losing their status when I dragged a metabox on a settings page.

I hacked together a workaround and posted it as a reply to the original wordpress trac ticket http://core.trac.wordpress.org/ticket/16972#comment:4

share|improve this answer

It seems to be caused by jQuery UI:


share|improve this answer
Haha, this is the bug I reported, but I wasn't sure that it is the same with TinyMCE, so currently we can't do anything with that, right? – depi Mar 28 '11 at 10:18
You can try to find a workaround. If you find something, do share. – scribu Mar 28 '11 at 13:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.