• Hi all,
    I have a code wp_editor() user for comment form, in wp 3.8 it run very good but when i update to 3.9 it not run.
    This here:

    wp_editor( '', 'comment', array(
            'media_buttons' => false,
            'textarea_rows' => '3',
            'tinymce' => array(
            'plugins' => 'inlinepopups, wordpress, wplink, wpdialogs',
            'theme_advanced_buttons1' => 'bold, italic, underline, strikethrough, forecolor, separator, bullist, numlist, separator, link, unlink, image','theme_advanced_buttons2' => ''),
    		'quicktags' => array('buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close')
            ) );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Please help me fix it, thanks you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you using a comment plugin?

    Thread Starter bbitcorporation

    (@bbitcorporation)

    No, i user this code for comemnt. Not user a plugin

    try it

    add_filter( ‘comment_form_defaults’, ‘rich_text_comment_form’ );
    function rich_text_comment_form( $args ) {
    ob_start();
    wp_editor( ”, ‘comment’, array(
    ‘media_buttons’ => false, // show insert/upload button(s) to users with permission
    ‘textarea_rows’ => ’10′, // re-size text area
    ‘tinymce’ => array(
    ‘menubar’ => ”,
    ‘toolbar1′ => ‘fontsizeselect,bold,italic,underline,strikethrough,bullist,numlist, alignleft,aligncenter,alignright,blockquote,link,unlink,|,undo, redo,media,image,emoticons,’,
    ‘toolbar2′ => ”, // 2nd row, if needed
    ‘toolbar3′ => ”, // 3rd row, if needed
    ‘toolbar4′ => ” // 4th row, if needed
    ),
    ‘quicktags’ => array(
    ‘buttons’ => ‘strong,em,link,block,del,ins,img,ul,ol,li,code,close’
    )
    ) );
    $args['comment_field'] = ob_get_clean();
    return $args;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error Wp_editor in wp 3.9’ is closed to new replies.