spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
812 stars 256 forks source link

Default configuration does not affect other configurations #166

Closed hasanloo closed 9 years ago

hasanloo commented 9 years ago

I set plugins and toolbar for default configuration. i have also some other configurations that would overide default configuration. But they dont ovveride default configuration. Is there such a mechanism in configurations at all?

spohlenz commented 9 years ago

Try something like this:

default: &default
  plugins:
    - image
    - link

alternate:
  <<: *default
  selector: textarea.table-editor
  plugins:
    - table

which is similar to what Rails uses for its database.yml.

hasanloo commented 9 years ago

Thanks @spohlenz

bhaity commented 5 years ago

@spohlenz IMO it would be helpful if this was the standard example in the README