From 1643ee3b660ee6d115f539475551d3cd1201845d Mon Sep 17 00:00:00 2001 From: Joachim Doerr Date: Mon, 23 Nov 2020 12:30:27 +0100 Subject: [PATCH] remove PastePlainText support form profile editor --- CHANGELOG.md | 1 + lib/Cke5/Creator/Cke5ProfilesCreator.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3abbeb5..6cc152f 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * vendor update to 23.1.0 * add htmlEmbed * add htmlEmbed preview optional +* remove PastePlainText support for now https://github.com/Mistralys/ckeditor5-paste-plaintext/issues/3 ## Version 4.1.0 diff --git a/lib/Cke5/Creator/Cke5ProfilesCreator.php b/lib/Cke5/Creator/Cke5ProfilesCreator.php index e269988..d9b86be 100644 --- a/lib/Cke5/Creator/Cke5ProfilesCreator.php +++ b/lib/Cke5/Creator/Cke5ProfilesCreator.php @@ -26,7 +26,8 @@ class Cke5ProfilesCreator ]; const ALLOWED_FIELDS = [ - 'toolbar' => ['|', 'heading', 'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor', 'alignment', 'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript', 'insertTable', 'code', 'codeBlock', 'link', 'rexImage', 'imageUpload', 'mediaEmbed', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo', 'highlight', 'emoji', 'removeFormat', 'outdent', 'indent', 'horizontalLine', 'todoList', 'pageBreak', 'selectAll', 'specialCharacters', 'pastePlainText', 'htmlEmbed'], + /* todo: add PastePlainText later again in case of issue is fixed https://github.com/Mistralys/ckeditor5-paste-plaintext/issues/3 */ + 'toolbar' => ['|', 'heading', 'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor', 'alignment', 'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript', 'insertTable', 'code', 'codeBlock', 'link', 'rexImage', 'imageUpload', 'mediaEmbed', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo', 'highlight', 'emoji', 'removeFormat', 'outdent', 'indent', 'horizontalLine', 'todoList', 'pageBreak', 'selectAll', 'specialCharacters'/*, 'pastePlainText'*/, 'htmlEmbed'], 'alignment' => ['left', 'right', 'center', 'justify'], 'table_toolbar' => ['tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties', 'tableCellProperties'], 'heading' => ['paragraph', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],