Update CKEditor plugins to be precompiled
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.
This commit is contained in:
@@ -8,6 +8,7 @@ Ckeditor.setup do |config|
|
|||||||
config.authorize_with :cancan
|
config.authorize_with :cancan
|
||||||
|
|
||||||
config.assets_languages = Rails.application.config.i18n.available_locales.map { |l| l.to_s.downcase }
|
config.assets_languages = Rails.application.config.i18n.available_locales.map { |l| l.to_s.downcase }
|
||||||
config.assets_plugins = %w[copyformatting image link magicline scayt table tableselection wsc]
|
config.assets_plugins = %w[balloonpanel balloontoolbar copyformatting image
|
||||||
|
link magicline scayt table tableselection wsc]
|
||||||
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
|
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user