Merge pull request #3979 from rockandror/ckeditor-recover-copy-paste

Allow to paste formatted content into ckeditors
This commit is contained in:
Javier Martín
2020-04-22 14:57:12 +02:00
committed by GitHub
2 changed files with 1 additions and 3 deletions

View File

@@ -6,8 +6,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
CKEDITOR.editorConfig = function( config )
{
config.forcePasteAsPlainText = true;
config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
config.filebrowserImageBrowseUrl = "/ckeditor/pictures";
config.filebrowserImageUploadUrl = "/ckeditor/pictures";

View File

@@ -9,6 +9,6 @@ Ckeditor.setup do |config|
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]
link magicline pastefromword scayt table tableselection wsc]
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
end