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:
Javi Martín
2019-11-07 01:22:25 +01:00
parent f240e0073f
commit ec1502ee00

View File

@@ -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