How to remove tinymce toolbar?

1

Good morning, I was able to limit the tinymce buttons as follows:

editor_config.toolbar1 = "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | emoticons";
editor_config.toolbar2 = "";

However, I could not figure out how to remove the toolbar that is in the image below, does anyone know how to remove it?

    
asked by anonymous 21.12.2015 / 14:37

1 answer

1

The attribute that configures / customizes the Menu and its respective buttons is menu .

In the way you're using, I think you'll be able to remove the buttons like this:

editor_config.menu = {}

There is another way to implement Tinson's call in the form of Json.

For example:

tinymce.init({
  selector: "#textarea",
  toolbar: "bold italic underline | alignleft aligncenter alignright alignjustify",
  menu : {},
  plugins: "link",
  link_list: [{title: 'Custumer', value: 'http://www.mywebsite.com.br'}],
  target_list: [{title: 'Mesma Página', value: '_self'},{title: 'Nova Aba', value: '_blank'}]
});

Of course, the way you intend to implement it is of your choice, how you think it is easier and better for possible maintenance.

    
18.01.2016 / 16:50