From 5ff7df149737bfbd47cfa6c8af71c792ccab3c28 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Fri, 24 Jul 2020 15:05:58 +0200 Subject: [PATCH] composer/plugin/drupal-8-scaffold#16 Add default text formats --- .../default/sync/editor.editor.basic_html.yml | 53 ++++++++++++++++ .../default/sync/editor.editor.full_html.yml | 61 +++++++++++++++++++ .../default/sync/filter.format.basic_html.yml | 43 +++++++++++++ .../default/sync/filter.format.full_html.yml | 34 +++++++++++ .../sync/filter.format.restricted_html.yml | 30 +++++++++ 5 files changed, 221 insertions(+) create mode 100644 config/default/sync/editor.editor.basic_html.yml create mode 100644 config/default/sync/editor.editor.full_html.yml create mode 100644 config/default/sync/filter.format.basic_html.yml create mode 100644 config/default/sync/filter.format.full_html.yml create mode 100644 config/default/sync/filter.format.restricted_html.yml diff --git a/config/default/sync/editor.editor.basic_html.yml b/config/default/sync/editor.editor.basic_html.yml new file mode 100644 index 0000000..4988418 --- /dev/null +++ b/config/default/sync/editor.editor.basic_html.yml @@ -0,0 +1,53 @@ +uuid: 8b60e810-06fe-44ff-937c-50505c365eb4 +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: + stylescombo: + styles: '' +image_upload: + status: true + scheme: public + directory: inline-images + max_size: '' + max_dimensions: + width: 0 + height: 0 diff --git a/config/default/sync/editor.editor.full_html.yml b/config/default/sync/editor.editor.full_html.yml new file mode 100644 index 0000000..a68a580 --- /dev/null +++ b/config/default/sync/editor.editor.full_html.yml @@ -0,0 +1,61 @@ +uuid: bfea9873-4885-467e-bb82-a31c820bd7ac +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: + stylescombo: + styles: '' +image_upload: + status: true + scheme: public + directory: inline-images + max_size: '' + max_dimensions: + width: 0 + height: 0 diff --git a/config/default/sync/filter.format.basic_html.yml b/config/default/sync/filter.format.basic_html.yml new file mode 100644 index 0000000..35f0447 --- /dev/null +++ b/config/default/sync/filter.format.basic_html.yml @@ -0,0 +1,43 @@ +uuid: 74b42912-d71f-4293-bf3b-673bb29a1b83 +langcode: en +status: true +dependencies: + module: + - editor +name: 'Basic HTML' +format: basic_html +weight: 0 +filters: + filter_html: + id: filter_html + provider: filter + status: true + weight: -10 + settings: + allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption>' + filter_html_help: false + filter_html_nofollow: false + filter_align: + id: filter_align + provider: filter + status: true + weight: 7 + settings: { } + filter_caption: + id: filter_caption + provider: filter + status: true + weight: 8 + settings: { } + filter_html_image_secure: + id: filter_html_image_secure + provider: filter + status: true + weight: 9 + settings: { } + editor_file_reference: + id: editor_file_reference + provider: editor + status: true + weight: 11 + settings: { } diff --git a/config/default/sync/filter.format.full_html.yml b/config/default/sync/filter.format.full_html.yml new file mode 100644 index 0000000..e6af3ee --- /dev/null +++ b/config/default/sync/filter.format.full_html.yml @@ -0,0 +1,34 @@ +uuid: 00c82778-1873-4677-bcf1-79d65eb0bd2c +langcode: en +status: true +dependencies: + module: + - editor +name: 'Full HTML' +format: full_html +weight: 2 +filters: + filter_align: + id: filter_align + provider: filter + status: true + weight: 8 + settings: { } + filter_caption: + id: filter_caption + provider: filter + status: true + weight: 9 + settings: { } + filter_htmlcorrector: + id: filter_htmlcorrector + provider: filter + status: true + weight: 10 + settings: { } + editor_file_reference: + id: editor_file_reference + provider: editor + status: true + weight: 11 + settings: { } diff --git a/config/default/sync/filter.format.restricted_html.yml b/config/default/sync/filter.format.restricted_html.yml new file mode 100644 index 0000000..fa5ab8f --- /dev/null +++ b/config/default/sync/filter.format.restricted_html.yml @@ -0,0 +1,30 @@ +uuid: d39897c3-b3d7-4576-bcc8-6b0644a6ee5c +langcode: en +status: true +dependencies: { } +name: 'Restricted HTML' +format: restricted_html +weight: 1 +filters: + filter_html: + id: filter_html + provider: filter + status: true + weight: -10 + settings: + allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>' + filter_html_help: true + filter_html_nofollow: false + filter_autop: + id: filter_autop + provider: filter + status: true + weight: 0 + settings: { } + filter_url: + id: filter_url + provider: filter + status: true + weight: 0 + settings: + filter_url_length: 72 -- GitLab