From 524f3ff3154a539f6664e59f242ce63d29ea2b80 Mon Sep 17 00:00:00 2001 From: Andor Date: Fri, 22 Apr 2022 14:52:19 +0200 Subject: [PATCH] Issue #361 - Replace ckeditor with ckeditor5 --- composer.lock | 4 +- sites/default/config/prod/core.extension.yml | 2 +- .../config/prod/editor.editor.html_body.yml | 132 ++++++++++-------- .../config/prod/editor.editor.html_full.yml | 106 +++++++++----- .../config/prod/editor.editor.html_teaser.yml | 74 +++++----- .../config/prod/filter.format.html_body.yml | 7 +- .../config/prod/filter.format.html_full.yml | 17 ++- .../config/prod/filter.format.html_teaser.yml | 2 +- .../config/prod/user.role.anonymous.yml | 7 +- .../config/prod/user.role.authenticated.yml | 19 ++- 10 files changed, 225 insertions(+), 145 deletions(-) diff --git a/composer.lock b/composer.lock index 9e4179692..e1cbcd9c3 100644 --- a/composer.lock +++ b/composer.lock @@ -14679,7 +14679,7 @@ "source": { "type": "git", "url": "https://github.com/Sweetchuck/dtt-core.git", - "reference": "9d40dff29a4f30a73f59cb6607d154d163107de5" + "reference": "252744929b2e9d81628ef920190fee4e1b67c2ef" }, "require": { "php": ">=7.4", @@ -14717,7 +14717,7 @@ "source": "https://github.com/Sweetchuck/dtt-core", "issues": "https://github.com/Sweetchuck/dtt-core/issues" }, - "time": "2021-11-19T14:28:23+00:00" + "time": "2022-04-22T14:15:48+00:00" }, { "name": "sweetchuck/dtt-entity_legal", diff --git a/sites/default/config/prod/core.extension.yml b/sites/default/config/prod/core.extension.yml index 8e827acf4..c203859aa 100644 --- a/sites/default/config/prod/core.extension.yml +++ b/sites/default/config/prod/core.extension.yml @@ -15,7 +15,7 @@ module: block_content: 0 book: 0 breakpoint: 0 - ckeditor: 0 + ckeditor5: 0 comment: 0 config: 0 contact: 0 diff --git a/sites/default/config/prod/editor.editor.html_body.yml b/sites/default/config/prod/editor.editor.html_body.yml index 25de76db1..8505a0316 100644 --- a/sites/default/config/prod/editor.editor.html_body.yml +++ b/sites/default/config/prod/editor.editor.html_body.yml @@ -5,71 +5,81 @@ dependencies: config: - filter.format.html_body module: - - ckeditor + - ckeditor5 format: html_body -editor: ckeditor +editor: ckeditor5 settings: toolbar: - rows: - - - - - name: Formázás - items: - - Bold - - Italic - - Underline - - Strike - - '-' - - Superscript - - Subscript - - '-' - - RemoveFormat - - - name: Hivatkozások - items: - - DrupalLink - - DrupalUnlink - - - name: Listák - items: - - BulletedList - - NumberedList - - '-' - - Indent - - Outdent - - - name: Média - items: - - SpecialChar - - HorizontalRule - - Blockquote - - DrupalMediaLibrary - - - name: Eszközök - items: - - '-' - - Source - - ShowBlocks - - Maximize - - - name: Igazítás - items: - - JustifyLeft - - JustifyCenter - - JustifyRight - - '-' - - JustifyBlock - - - name: Formázás - items: - - Format - - '-' - - Styles + items: + - undo + - redo + - '|' + - heading + - horizontalLine + - '|' + - bulletedList + - numberedList + - indent + - outdent + - '|' + - codeBlock + - blockQuote + - drupalMedia + - '|' + - alignment + - '|' + - '-' + - bold + - italic + - underline + - strikethrough + - '|' + - link + - code + - subscript + - superscript + - specialCharacters + - '|' + - removeFormat + - '|' + - sourceEditing plugins: - language: - language_list: un - stylescombo: - styles: '' + ckeditor5_heading: + enabled_headings: + - heading2 + - heading3 + - heading4 + - heading5 + - heading6 + ckeditor5_sourceEditing: + allowed_tags: + - '' + - '' + - '' + - '' + - '
' + - '
' + - '
' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '
' + - '

' + - '

' + - '

' + - '

' + - '
' + - '' + - '