This extension provides an inline rich-text editor for Spree. It implements different types of editors:
Add the Spree Editor gem to your
gem 'spree_editor', github: 'spree-contrib/spree_editor', branch: 'master'
$ bundle install $ rails g spree_editor:install
If using CKEditor, and would like to enable file uploads run the ckeditor generator:
$ rails g ckeditor:install --orm=active_record --backend=paperclip && rake db:migrate
In order to secure your file uploads to only be accessed by admins you will also need to configure config/initializers/ckeditor.rb:
config.authorize_with :cancan, Spree::Ability
In order to precompile CKEditor's generated assets, you will need to add a line in config/initializers/assets.rb:
Rails.application.config.assets.precompile += %w( ckeditor/*)
Preferences can be updated within the admin panel under "configuration" then "rich editor".
Or you may set them with an initializer within your application:
SpreeEditor::Config.tap do |config| config.ids = 'product_description page_body event_body' end
To obtain support for multiple languages with TinyMCE add tinymce-rails-langs to your Gemfile:
TinyMCE will not be loaded unless it finds a language package matching your
See corresponding guidelines