A plugin for adding TinyMCE support in Administrate.
Add tinymce-rails and administrate-field-tinymce to your Gemfile
:
gem "tinymce-rails"
gem "administrate-field-tinymce", "~> 0.0.1"
Run:
$ bundle install
Add require javascripts to your manifest.js
//= link administrate-field-tinymce/application.js
Add to your FooDashboard
:
ATTRIBUTE_TYPES = [
bars: Field::Tinymce,
]
Or with options:
ATTRIBUTE_TYPES = [
bars: Field::Tinymce.with_options(rows: 100, columns: 100),
]