Rajat Gupta
asked 7 years ago

Dear Sir,

i wish to disable or minimize top some options in the rich text editor. i wish to remove :
link, video, image, font size, font colour

kindly check the attached image :
![enter image description here](http://www.dealgrab.in/question.jpg "enter image title here")

1 Answers
Allen
answered 7 years ago

@Raja Gupta : Hi , in wordpress , to use the tinyMCE editor , we usually use wp_editor() function.The code to get that editor gonna be like this :

    wp_editor( $content, $id, array(
        'wpautop'       => false,
        'media_buttons' => false,
        'textarea_name' => 'textarea_name',
        'textarea_rows' => 5,
        'tinymce' => array(
                    // button will display in the editor
                ),
        'quicktags'     => false,
    ) );

so, to remove what you want , just find wp_editor() function , and remove some option in tinymce array such as link,image, ….
You can find all buttons here: http://www.tinymce.com/wiki.php/TinyMCE3x:Buttons/controls
Hope it help. Glad

Powered by DW Question & Answer Pro