spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
814 stars 257 forks source link

tinymce.yml settings not affecting editor #159

Open PabloNeirotti opened 9 years ago

PabloNeirotti commented 9 years ago

Hi there!

For some reason, whatever I set in config/tinymce.yml does not seem to affect at all the editor. Is there a reason for this happening?

In example, I would have this:

toolbar:
  - styleselect | bold | undo redo
  - image | link
plugins:
  - image
  - link
  - table
  - colorpicker

You can see there is no italic. Yet the editor has Italic, a bunch other options I didn't set, and missing a bunch others.

Do I need to specify somehow that my config/tinymce.yml file is there and should be used?

spohlenz commented 9 years ago

Are you using the tinymce helper to initialize TinyMCE or your own code? See https://github.com/spohlenz/tinymce-rails/blob/master/sandbox/app/views/editor/helpers.html.erb for an example. No extra configuration should be required (and your example works for me).