Inline Editing with wp_editor and tinymce (problem with textarea)
I want to use the new inline editing from tinymce with the wp_editor function in wordpress.
Here is some info on how to set up tinymce inline editing http://www.tinymce.com/tryit/inline.php
The code I am using to call wp_editor is as follows:
$editor_settings = array('dfw' = true,'quicktags' = false);
wp_editor( $postcontent, 'postcontent', $editor_settings );
And in functions.php I have the following to enable inline editing:
function mce_inline( $init ) {
$init['inline'] = true;
return $init;
}
add_filter('tiny_mce_before_init', 'mce_inline');
The problem here is that wp_editor is calling the editor and setting up a textarea. In order for tinymce inline editing to work correctly, we need to remove the textarea and replace it with a editable
div element as tinymce.com says so.
div class="editable" style="width:100%; height:550px"
This is an editable div element element.
/div
Thus, my question is, how can I configure wp_editor so it replaces the textarea with a div element?