custom wp_editor
-
We currently use a custom wp editor for our comments and replies that makes use of the inbuilt tinymce formatting:
add_filter( 'comment_form_field_comment', 'comment_editor' ); function comment_editor( $args ) { global $post; ob_start(); wp_editor( '', 'comment', array( 'textarea_rows' => 15, 'teeny' => true, 'media_buttons' => false, 'quicktags' => false, 'tinymce' => array( 'toolbar1' => 'bold, italic, underline', 'toolbar2'=>false, 'statusbar'=>false, 'content_css' => get_stylesheet_directory_uri() . '/editor.css' ) ) ); $editor = ob_get_contents();Is there a way to apply this to the edit text area as currently it shows all the html mark up without the simple styling?
The topic ‘custom wp_editor’ is closed to new replies.