From f689cb8599cc75aa509377f0b2e9957b0b0642e1 Mon Sep 17 00:00:00 2001 From: Andrii Podanenko Date: Fri, 26 May 2023 13:30:54 +0300 Subject: [PATCH 1/4] feat: Enable CKEditor5. No Upgrade Path --- .../install/editor.editor.full_html.yml | 105 ++++++++------- .../install/filter.format.full_html.yml | 127 +++++++++++++++++- 2 files changed, 178 insertions(+), 54 deletions(-) diff --git a/openy_editor/config/install/editor.editor.full_html.yml b/openy_editor/config/install/editor.editor.full_html.yml index 8affd0a0..f3c0f1b4 100644 --- a/openy_editor/config/install/editor.editor.full_html.yml +++ b/openy_editor/config/install/editor.editor.full_html.yml @@ -4,63 +4,64 @@ dependencies: config: - filter.format.full_html module: - - ckeditor + - ckeditor5 format: full_html -editor: ckeditor +editor: ckeditor5 settings: toolbar: - rows: - - - - - name: Formatting - items: - - Bold - - Italic - - Underline - - Strike - - JustifyLeft - - JustifyCenter - - JustifyRight - - JustifyBlock - - TextColor - - BGColor - - Outdent - - Indent - - Format - - - name: Links - items: - - DrupalLink - - DrupalUnlink - - - name: Lists - items: - - BulletedList - - NumberedList - - - name: Media - items: - - Blockquote - - embed_video - - embed_local_video - - embed_image - - embed_document - - - name: Tools - items: - - Table - - Source - - SpecialChar - - Maximize - - Language - - btbutton + items: + - bold + - italic + - underline + - strikethrough + - alignment + - outdent + - indent + - heading + - '|' + - link + - '|' + - bulletedList + - numberedList + - '|' + - blockQuote + - drupalMedia + - '|' + - insertTable + - sourceEditing + - specialCharacters + - textPartLanguage plugins: - language: + ckeditor5_alignment: + enabled_alignments: + - center + - justify + - left + - right + ckeditor5_heading: + enabled_headings: + - heading2 + - heading3 + - heading4 + - heading5 + - heading6 + ckeditor5_language: language_list: un - stylescombo: - styles: '' - colorbutton: - colors: '5c2e91,92278f,c6168d,0060af,0089d0,00aeef,006b6b,01a490,20bdbe,dd5828,f47920,fcaf17,a92b31,ed1c24,f15922' + ckeditor5_list: + reversed: true + startIndex: true + ckeditor5_sourceEditing: + allowed_tags: { } + editor_advanced_link_link: + enabled_attributes: + - aria-label + - class + - id + - rel + - target + - title + media_media: + allow_view_mode_override: false image_upload: status: false scheme: public diff --git a/openy_editor/config/install/filter.format.full_html.yml b/openy_editor/config/install/filter.format.full_html.yml index ed59c645..9877c2ec 100644 --- a/openy_editor/config/install/filter.format.full_html.yml +++ b/openy_editor/config/install/filter.format.full_html.yml @@ -1,9 +1,42 @@ langcode: en status: true dependencies: + config: + - core.entity_view_mode.media.article_image + - core.entity_view_mode.media.calc_preview + - core.entity_view_mode.media.calc_summary + - core.entity_view_mode.media.embedded_full + - core.entity_view_mode.media.embedded_half + - core.entity_view_mode.media.embedded_link + - core.entity_view_mode.media.event_image + - core.entity_view_mode.media.featured + - core.entity_view_mode.media.full + - core.entity_view_mode.media.full_without_blazy + - core.entity_view_mode.media.half_without_blazy + - core.entity_view_mode.media.icon + - core.entity_view_mode.media.media_library + - core.entity_view_mode.media.node_blog + - core.entity_view_mode.media.node_blog_teaser + - core.entity_view_mode.media.node_news + - core.entity_view_mode.media.node_news_teaser + - core.entity_view_mode.media.node_program_header + - core.entity_view_mode.media.node_program_subcategory_teaser + - core.entity_view_mode.media.prgf_banner + - core.entity_view_mode.media.prgf_gallery + - core.entity_view_mode.media.prgf_small_banner + - core.entity_view_mode.media.prgf_teaser + - core.entity_view_mode.media.related_content + - core.entity_view_mode.media.slick + - core.entity_view_mode.media.teaser + - core.entity_view_mode.media.teaser_image + - core.entity_view_mode.media.thumbnail_for_preview + - core.entity_view_mode.media.token module: + - blazy - editor - entity_embed + - media + - slick - token_filter name: 'Full HTML' format: full_html @@ -39,7 +72,7 @@ filters: status: false weight: -44 settings: - allowed_html: '