Skip to content

Commit

Permalink
remove PastePlainText support form profile editor
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimdoerr committed Nov 23, 2020
1 parent ea8ae53 commit 1643ee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion lib/Cke5/Creator/Cke5ProfilesCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 1643ee3

Please sign in to comment.