All of these plugins are not used anywhere. Change introduced at ckeditor initializer will ommit unneeded precompilation of plugins assets on production environments. Change introduced at ckeditor config file adresses the problem with assets pipeline fallback on testing environments described here: #2711. Now plugins that are explicitly disabled will not be precomiled when running ckeditor javascript enabled feature specs.
15 lines
603 B
Ruby
15 lines
603 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[image link magicline pastefromword
|
|
table tableselection]
|
|
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
|
|
end
|