Skip to content

Replacing default wysiwyg editor with tinymce

Torey Heinz edited this page Nov 21, 2013 · 2 revisions
  1. Add this to your Gemfile:
gem 'tinymce-rails'
  1. Run $ bundle install

  2. Create a file at app/assets/javascript/comfortable_mexican_sofa/admin/application.js.coffee:

#= require tinymce

window.CMS.wysiwyg = ->
  tinymce.init
    selector: 'textarea[data-cms-rich-text]'
    # any additional tinymce configuration can go here