Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE customize "file" menubar

Is there a way to customize (add and remove options, e.t.c..) the menubar in TinyMCE 4.0? I am unable to find any documentation on that specific part of the editor. The image below demonstrates the part I'm talking about. enter image description here

like image 923
Kevin Pei Avatar asked Apr 16 '13 20:04

Kevin Pei


People also ask

How do you get rid of the menu bar on TinyMCE?

To disable the menu bar, the menubar option should be provided a boolean value of false .

How do you get rid of Tinyed by power on TinyMCE?

Use the branding option to disable the “Powered by Tiny” link displayed in the status bar for product attribution. Important: Product attribution is required for free and open source users. For information on TinyMCE attribution requirements, see: Logo & attribution requirements.


1 Answers

Version 4 is a major rewrite and the docs were out of sync for a while.

Through experimentation, I discovered that it is possible to enable/disable the drop-downs individually or disable the whole menubar.

Enable specific drop downs only:

tinymce.init({
    selector: "textarea",
    menubar: "edit format"
});

Disable menubar:

tinymce.init({
    selector: "textarea",
    menubar: false
});

The menubar configuration docs have now been added to TinyMCE site.

Also, if you want to completely customize the whole menu, check out the menu configuration docs.

like image 159
toxalot Avatar answered Sep 21 '22 18:09

toxalot