From 46c3dff0e6d806f7aa923c8e82d4560a54bd6039 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 10 Oct 2024 15:55:07 +0200 Subject: [PATCH] simple text format for exergue --- config/sync/editor.editor.footnote.yml | 9 ++---- config/sync/editor.editor.simple.yml | 18 +++++++++++ ....paragraph.exergue.field_texte_exergue.yml | 2 ++ config/sync/filter.format.footnote.yml | 15 +++++++++- config/sync/filter.format.simple.yml | 30 +++++++++++++++++++ config/sync/user.role.authenticated.yml | 7 +++++ config/sync/user.role.editor.yml | 4 +++ 7 files changed, 77 insertions(+), 8 deletions(-) create mode 100644 config/sync/editor.editor.simple.yml create mode 100644 config/sync/filter.format.simple.yml diff --git a/config/sync/editor.editor.footnote.yml b/config/sync/editor.editor.footnote.yml index 35c1adb..6a6daac 100644 --- a/config/sync/editor.editor.footnote.yml +++ b/config/sync/editor.editor.footnote.yml @@ -17,12 +17,7 @@ settings: - italic - link plugins: - ckeditor5_heading: - enabled_headings: - - heading2 - - heading3 - - heading4 - - heading5 - - heading6 + linkit_extension: + linkit_enabled: false image_upload: status: false diff --git a/config/sync/editor.editor.simple.yml b/config/sync/editor.editor.simple.yml new file mode 100644 index 0000000..0c2ae4c --- /dev/null +++ b/config/sync/editor.editor.simple.yml @@ -0,0 +1,18 @@ +uuid: 3aa0f72f-3bc8-4331-9166-9115812e544b +langcode: fr +status: true +dependencies: + config: + - filter.format.simple + module: + - ckeditor5 +format: simple +editor: ckeditor5 +settings: + toolbar: + items: + - bold + - italic + plugins: { } +image_upload: + status: false diff --git a/config/sync/field.field.paragraph.exergue.field_texte_exergue.yml b/config/sync/field.field.paragraph.exergue.field_texte_exergue.yml index 7774dda..01fb046 100644 --- a/config/sync/field.field.paragraph.exergue.field_texte_exergue.yml +++ b/config/sync/field.field.paragraph.exergue.field_texte_exergue.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.storage.paragraph.field_texte_exergue + - filter.format.simple - filter.format.wysiwyg - paragraphs.paragraphs_type.exergue module: @@ -20,5 +21,6 @@ default_value: { } default_value_callback: '' settings: allowed_formats: + - simple - wysiwyg field_type: text_long diff --git a/config/sync/filter.format.footnote.yml b/config/sync/filter.format.footnote.yml index d1ac3cb..6ba23e6 100644 --- a/config/sync/filter.format.footnote.yml +++ b/config/sync/filter.format.footnote.yml @@ -1,7 +1,9 @@ uuid: 2ec829f9-c16a-4c93-91e7-8bad5989f29d langcode: fr status: true -dependencies: { } +dependencies: + module: + - pathologic _core: default_config_hash: SYAah-i4HbJnc3ZnKC9NmY4M0UAFYpfobYzxg0eMunM name: Footnote @@ -17,3 +19,14 @@ filters: allowed_html: '

' filter_html_help: true filter_html_nofollow: false + filter_pathologic: + id: filter_pathologic + provider: pathologic + status: false + weight: 50 + settings: + settings_source: global + local_settings: + protocol_style: full + local_paths: '' + keep_language_prefix: true diff --git a/config/sync/filter.format.simple.yml b/config/sync/filter.format.simple.yml new file mode 100644 index 0000000..d9c18a4 --- /dev/null +++ b/config/sync/filter.format.simple.yml @@ -0,0 +1,30 @@ +uuid: 3abd1a86-a6e0-42e2-8157-dbfa511020ba +langcode: fr +status: true +dependencies: + module: + - pathologic +name: simple +format: simple +weight: 0 +filters: + filter_html: + id: filter_html + provider: filter + status: true + weight: -10 + settings: + allowed_html: '

' + filter_html_help: true + filter_html_nofollow: false + filter_pathologic: + id: filter_pathologic + provider: pathologic + status: false + weight: 50 + settings: + settings_source: global + local_settings: + protocol_style: full + local_paths: '' + keep_language_prefix: true diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml index e2a8c24..57a1f3c 100644 --- a/config/sync/user.role.authenticated.yml +++ b/config/sync/user.role.authenticated.yml @@ -3,8 +3,12 @@ langcode: fr status: true dependencies: config: + - filter.format.footnote + - filter.format.simple + - filter.format.wysiwyg - rest.resource.rest_menu_item module: + - filter - media - rest - system @@ -17,4 +21,7 @@ is_admin: false permissions: - 'access content' - 'restful get rest_menu_item' + - 'use text format footnote' + - 'use text format simple' + - 'use text format wysiwyg' - 'view media' diff --git a/config/sync/user.role.editor.yml b/config/sync/user.role.editor.yml index b179ef2..2bd2625 100644 --- a/config/sync/user.role.editor.yml +++ b/config/sync/user.role.editor.yml @@ -3,6 +3,8 @@ langcode: fr status: true dependencies: config: + - filter.format.footnote + - filter.format.simple - filter.format.wysiwyg - node.type.etape - node.type.gallerie_photo @@ -47,6 +49,8 @@ permissions: - 'revert etape revisions' - 'revert gallerie_photo revisions' - 'revert static revisions' + - 'use text format footnote' + - 'use text format simple' - 'use text format wysiwyg' - 'view etape revisions' - 'view gallerie_photo revisions'