I am trying to integrate wpeditor to a textarea using the code below. It brings the TinyMCE editor but if the user leaves the page on visual mode and tries to edit the same again, the visual mode doesn't work. It doesn't allow to focus into the content area in visual mode and it shows a blank screen.
global $post; $result = wp_editor( stripslashes( html_entity_decode( $post->$column_name ) ), $field_name, array ( 'textarea_rows' => 25, 'media_buttons' => FALSE, 'teeny' => TRUE, 'tinymce' => TRUE, 'wpautop' => TRUE, ) ); return $result;
How to fix the above fix ?
Please note that I am trying to display this on post quick edit screen. Even though I am able to display the editor, it creates problem when an user is editing on visual mode and leaves the page, next when comes again by clicking quick edit again, it shows a blank screen where the mouse can't be focused.