• Resolved Howdy_McGee

    (@howdy_mcgee)


    I’ve installed TinyMCE Advanced and it works great on post types but I want to modify it a little bit on a custom TinyMCE ( wp_editor() ). I’d like to hide / remove the menu bar, preferably not through css. I thought I could pass “menubar => false” but it didn’t seem to work, neither did passing it an empty string.

    wp_editor( $bot_content, 'bot_content_editor', array(
    	'textarea_name'		=> '_bot_content',
    	'tinymce'			=> array(
    		'menubar'		=> false
    	)
    ) );

    Again, passing false or '' doesn’t get rid of the menubar, how do I remove the menubar on custom editors?

    https://ww.wp.xz.cn/plugins/tinymce-advanced/

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    This is because using the tiny_mce_before_init filter has “higher priority” than passing the settings in wp_editor(). To override that you will need to use the filter with a priority higher than in tinymce-advanced.php.

Viewing 1 replies (of 1 total)

The topic ‘WP_Editor – Remove Menu Bar’ is closed to new replies.