The new version of CKEditor loads the balloonpanel and balloontoolbar plugins. Even if we don't need them, I haven't found a way to prevent them from loading, meaning we have to precompile them.
15 lines
642 B
Ruby
15 lines
642 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.authorize_with :cancan
|
|
|
|
config.assets_languages = Rails.application.config.i18n.available_locales.map { |l| l.to_s.downcase }
|
|
config.assets_plugins = %w[balloonpanel balloontoolbar copyformatting image
|
|
link magicline scayt table tableselection wsc]
|
|
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
|
|
end
|