I want use only bold and italic with TinyMce. I don't want more features, only bold and italic buttons.
1º I have installed the gem tinymce-rails
2º I have a file config/tinymce.yml
with the next content:
theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_statusbar_location: bottom
theme_advanced_buttons1 :
- bold
- italic
theme_advanced_buttons2 :
theme_advanced_buttons3 :
3º On the view:
<%= text_area_tag :editor, "", :class => "tinymce", :rows => 20, :cols => 120 %>
<%= tinymce %>
However I can see all buttons, and all toolbars.
How can I only use bold and italic buttons. I want remove all other features and toolbars. Thanks!
e2. For your specific situation, I think the problem is you are using the 4.0+version of the gem which has the 4+ version of tinymce in it. They changed the name of the advanced theme to modern. Among a bunch of other changes that I didn't bother figuring out.
Just downgrade your gem version to 3.5.8(which is what I am using) and the code you already had will work fine.
e3. Config file for version 4+ is simple:
toolbar1: bold italic
menubar: false
statusbar: false
menubar and statusbar remove those respective bars.
The master branch Readme is outdated, check out the readme for the version 4+ gem.