From 9600a0b13a4301c0071dad36c33a5f616ecc2eb9 Mon Sep 17 00:00:00 2001 From: Lauri Eskola Date: Thu, 25 Aug 2022 23:37:53 +0300 Subject: [PATCH] Issue #3271097 by bnjmnm, xjm, Wim Leers, phenaproxima: Replace CKEditor 4 with CKEditor 5 in the Standard profile and StandardTest (cherry picked from commit 9ca6256b8a0a7570a5b33a3f5e37ace650ec29af) (cherry picked from commit c61a6521396d8b99e68443d1a873ab232abc33c9) --- .../editor.editor.basic_html.yml | 50 ++++++++++++ .../editor.editor.full_html.yml | 58 ++++++++++++++ .../filter.format.basic_html.yml | 44 ++++++++++ .../filter.format.full_html.yml | 35 ++++++++ .../filter.format.restricted_html.yml | 31 +++++++ .../src/Kernel/SmartDefaultSettingsTest.php | 28 +++---- .../help/tests/src/Functional/HelpTest.php | 6 ++ .../install/editor.editor.basic_html.yml | 80 +++++++++++-------- .../install/editor.editor.full_html.yml | 80 +++++++++---------- .../install/filter.format.basic_html.yml | 2 +- core/profiles/standard/standard.info.yml | 2 +- .../tests/src/Functional/StandardTest.php | 26 +++++- 12 files changed, 350 insertions(+), 92 deletions(-) create mode 100644 core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.basic_html.yml create mode 100644 core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.full_html.yml create mode 100644 core/modules/ckeditor5/tests/fixtures/ckeditor4_config/filter.format.basic_html.yml create mode 100644 core/modules/ckeditor5/tests/fixtures/ckeditor4_config/filter.format.full_html.yml create mode 100644 core/modules/ckeditor5/tests/fixtures/ckeditor4_config/filter.format.restricted_html.yml diff --git a/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.basic_html.yml b/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.basic_html.yml new file mode 100644 index 00000000000..cafc88e22c9 --- /dev/null +++ b/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.basic_html.yml @@ -0,0 +1,50 @@ +langcode: en +status: true +dependencies: + config: + - filter.format.basic_html + module: + - ckeditor +format: basic_html +editor: ckeditor +settings: + toolbar: + rows: + - + - + name: Formatting + items: + - Bold + - Italic + - + name: Linking + items: + - DrupalLink + - DrupalUnlink + - + name: Lists + items: + - BulletedList + - NumberedList + - + name: Media + items: + - Blockquote + - DrupalImage + - + name: 'Block Formatting' + items: + - Format + - + name: Tools + items: + - Source + plugins: {} +image_upload: + status: true + scheme: public + directory: inline-images + max_size: '' + max_dimensions: + width: 0 + height: 0 diff --git a/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.full_html.yml b/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.full_html.yml new file mode 100644 index 00000000000..a423369d1f5 --- /dev/null +++ b/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/editor.editor.full_html.yml @@ -0,0 +1,58 @@ +langcode: en +status: true +dependencies: + config: + - filter.format.full_html + module: + - ckeditor +format: full_html +editor: ckeditor +settings: + toolbar: + rows: + - + - + name: Formatting + items: + - Bold + - Italic + - Strike + - Superscript + - Subscript + - '-' + - RemoveFormat + - + name: Linking + items: + - DrupalLink + - DrupalUnlink + - + name: Lists + items: + - BulletedList + - NumberedList + - + name: Media + items: + - Blockquote + - DrupalImage + - Table + - HorizontalRule + - + name: 'Block Formatting' + items: + - Format + - + name: Tools + items: + - ShowBlocks + - Source + plugins: {} +image_upload: + status: true + scheme: public + directory: inline-images + max_size: '' + max_dimensions: + width: 0 + height: 0 diff --git a/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/filter.format.basic_html.yml b/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/filter.format.basic_html.yml new file mode 100644 index 00000000000..92224c23cf9 --- /dev/null +++ b/core/modules/ckeditor5/tests/fixtures/ckeditor4_config/filter.format.basic_html.yml @@ -0,0 +1,44 @@ +langcode: en +status: true +dependencies: + module: + - editor +name: 'Basic HTML' +format: basic_html +weight: 0 +roles: + - authenticated +filters: + filter_html: + id: filter_html + provider: filter + status: true + weight: -10 + settings: + allowed_html: '