Just so we can navigate throught git history faster: * Introduced in345e34dto avoid precompiling all CKEditor assets. * Modified in54c82a5to avoid compiling assets during tests. * Overwritten by `rails g ckeditor:install` in c0d6c0b.
13 lines
518 B
Ruby
13 lines
518 B
Ruby
Ckeditor.setup do |config|
|
|
# ==> ORM configuration
|
|
# Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
|
|
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
|
# available as additional gems.
|
|
require 'ckeditor/orm/active_record'
|
|
|
|
config.assets_languages = Rails.application.config.i18n.available_locales.map{|l| l.to_s.downcase}
|
|
config.assets_plugins = %w[copyformatting tableselection scayt wsc]
|
|
end
|
|
|
|
Ckeditor::PicturesController.send(:load_and_authorize_resource)
|