I use the
wp_editor function to display an editor in front-end.
The problem is that this editor doesnt behave like the editor in backend based on the settings I give as input:
$settings = array( 'wpautop' => true, 'media_buttons' => false, 'tinymce' => array( 'theme_advanced_buttons1' => 'formatselect,|,bold,italic,underline,|,' . 'bullist,blockquote,|,justifyleft,justifycenter' . ',justifyright,justifyfull,|,link,unlink,|' . ',spellchecker,wp_fullscreen,wp_adv ', 'mode' => 'specific_textareas', ), 'quicktags' => false); wp_editor($content, 'contentEditorBox', $settings );
The website is a front end private community, and the content inserted by all members is coming from Microsoft Word. This same content, if instered in backend, appear as a text wrapped by HTML tags (
br...) and inline CSS styles when I swap to HTML mode in editor. But in front end, the editor doesn't show the mode tabs, and content is always raw content containing no HTML and no styles.
I need that the content maintain its style i.e, to be inserted from front end like it does from backend.
How can copy-paste from MS word to wordpress editor in front end maintain the styles and HTML?
Your help is highly appreciated.