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?
Thanks.