From dc1c2922f1550e0d11b42722dd1032de600474ea Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Tue, 9 Apr 2024 21:20:11 +0100 Subject: [PATCH] Re-add CKEditor to the basic HTML text format --- config/sync/editor.editor.basic_html.yml | 53 ++++++++++++++++++++++++ config/sync/filter.format.basic_html.yml | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 config/sync/editor.editor.basic_html.yml diff --git a/config/sync/editor.editor.basic_html.yml b/config/sync/editor.editor.basic_html.yml new file mode 100644 index 0000000..1823ff1 --- /dev/null +++ b/config/sync/editor.editor.basic_html.yml @@ -0,0 +1,53 @@ +uuid: 01255b3b-61c7-499f-af49-b56c9bd0292c +langcode: en +status: true +dependencies: + config: + - filter.format.basic_html + module: + - ckeditor5 +format: basic_html +editor: ckeditor5 +settings: + toolbar: + items: + - heading + - bold + - italic + - '|' + - link + - blockQuote + - bulletedList + - numberedList + - code + - sourceEditing + plugins: + ckeditor5_heading: + enabled_headings: + - heading2 + - heading3 + - heading4 + - heading5 + - heading6 + ckeditor5_list: + properties: + reversed: false + startIndex: true + multiBlock: true + ckeditor5_sourceEditing: + allowed_tags: + - '<cite>' + - '<dl>' + - '<dt>' + - '<dd>' + - '<a hreflang>' + - '<blockquote cite>' + - '<ul type>' + - '<ol type>' + - '<img src alt data-entity-uuid data-entity-type height width data-caption data-align>' + - '<h2 id>' + - '<h3 id>' + - '<h4 id>' + - '<h5 id>' + - '<h6 id>' +image_upload: { } diff --git a/config/sync/filter.format.basic_html.yml b/config/sync/filter.format.basic_html.yml index 807a2dc..a2f8164 100644 --- a/config/sync/filter.format.basic_html.yml +++ b/config/sync/filter.format.basic_html.yml @@ -34,7 +34,7 @@ filters: status: true weight: -10 settings: - allowed_html: '<br> <p> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <cite> <dl> <dt> <dd> <a hreflang href> <blockquote cite> <ul type> <ol start type> <strong> <em> <code> <li> <img src alt data-entity-uuid data-entity-type height width data-caption data-align>' + allowed_html: '<br> <p> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <cite> <dl> <dt> <dd> <a hreflang href> <blockquote cite> <ul type> <ol type start> <img src alt data-entity-uuid data-entity-type height width data-caption data-align> <strong> <em> <code> <li>' filter_html_help: false filter_html_nofollow: false filter_html_image_secure: