From d4a61a23a72c5cb63a6395514bc79c3175bbd6c0 Mon Sep 17 00:00:00 2001 From: rajeshreeputra Date: Mon, 13 Jan 2025 09:22:00 +0530 Subject: [PATCH 1/4] ACMS-4430: Fix Site Studio (Text formats and editors) as per CKEditor5. --- .../optional/editor.editor.cohesion.yml | 33 ++++++++++++++++++- .../optional/filter.format.cohesion.yml | 30 ++++++++--------- 2 files changed, 47 insertions(+), 16 deletions(-) diff --git a/modules/acquia_cms_site_studio/config/optional/editor.editor.cohesion.yml b/modules/acquia_cms_site_studio/config/optional/editor.editor.cohesion.yml index 6839cdc7b..ba0b358cf 100644 --- a/modules/acquia_cms_site_studio/config/optional/editor.editor.cohesion.yml +++ b/modules/acquia_cms_site_studio/config/optional/editor.editor.cohesion.yml @@ -35,6 +35,36 @@ settings: - codeBlock - style plugins: + ckeditor5_codeBlock: + languages: + - label: 'Plain text' + language: plaintext + - label: C + language: c + - label: 'C#' + language: cs + - label: C++ + language: cpp + - label: CSS + language: css + - label: Diff + language: diff + - label: HTML + language: html + - label: Java + language: java + - label: JavaScript + language: javascript + - label: PHP + language: php + - label: Python + language: python + - label: Ruby + language: ruby + - label: TypeScript + language: typescript + - label: XML + language: xml ckeditor5_heading: enabled_headings: - heading2 @@ -347,6 +377,7 @@ settings: properties: reversed: true startIndex: true + multiBlock: true ckeditor5_alignment: enabled_alignments: - left @@ -359,7 +390,7 @@ image_upload: status: true scheme: public directory: inline-images - max_size: '' + max_size: '5 MB' max_dimensions: width: null height: null diff --git a/modules/acquia_cms_site_studio/config/optional/filter.format.cohesion.yml b/modules/acquia_cms_site_studio/config/optional/filter.format.cohesion.yml index 1da6c2e89..343915f8b 100644 --- a/modules/acquia_cms_site_studio/config/optional/filter.format.cohesion.yml +++ b/modules/acquia_cms_site_studio/config/optional/filter.format.cohesion.yml @@ -11,15 +11,6 @@ name: 'Site Studio' format: cohesion weight: 0 filters: - filter_html: - id: filter_html - provider: filter - status: false - weight: -9 - settings: - allowed_html: '