Merge pull request #3981 from rockandror/disable-ckeditor-unused-plugins
Disable ckeditor unused plugins
This commit is contained in:
@@ -14,6 +14,8 @@ CKEDITOR.editorConfig = function( config )
|
||||
config.allowedContent = true;
|
||||
config.format_tags = "p;h2;h3";
|
||||
|
||||
config.removePlugins = "balloonpanel,balloontoolbar,copyformatting,scayt,wsc";
|
||||
|
||||
// Rails CSRF token
|
||||
config.filebrowserParams = function(){
|
||||
var csrf_token, csrf_param, meta,
|
||||
|
||||
@@ -8,7 +8,7 @@ Ckeditor.setup do |config|
|
||||
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 pastefromword scayt table tableselection wsc]
|
||||
config.assets_plugins = %w[image link magicline pastefromword
|
||||
table tableselection]
|
||||
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user