Update input formats simply by saving (& switching minimal to ckeditor5)

This commit is contained in:
benjamin melançon 2025-02-21 23:25:29 -05:00
parent bf260559c0
commit fd8b85d8cc
14 changed files with 106 additions and 47 deletions

View file

@ -62,6 +62,8 @@ settings:
enabled_attributes: { } enabled_attributes: { }
linkit_extension: linkit_extension:
linkit_enabled: false linkit_enabled: false
wysiwyg_linebreaks_extension:
method: force
image_upload: image_upload:
status: true status: true
scheme: public scheme: public

View file

@ -0,0 +1,15 @@
status: true
dependencies:
config:
- filter.format.footnote
module:
- ckeditor5
format: footnote
editor: ckeditor5
settings:
toolbar:
items:
- bold
- italic
- link
image_upload: { }

View file

@ -18,7 +18,7 @@ settings:
- superscript - superscript
- subscript - subscript
- removeFormat - removeFormat
- Footnotes - footnotes
- link - link
- bulletedList - bulletedList
- numberedList - numberedList
@ -50,5 +50,7 @@ settings:
linkit_profile: default linkit_profile: default
media_media: media_media:
allow_view_mode_override: false allow_view_mode_override: false
wysiwyg_linebreaks_extension:
method: force
image_upload: image_upload:
status: false status: false

View file

@ -1,44 +1,51 @@
uuid: c627e429-1f81-4d6d-87a1-402d40f43c6b uuid: 544510b1-f241-4456-83a3-f602c111c46e
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- filter.format.minimalhtml - filter.format.minimalhtml
module: module:
- ckeditor - ckeditor5
_core:
default_config_hash: kP3r4Ns9C1XIg5vFA9a0mteIKThq8E_eL43z7VIZUTY
format: minimalhtml format: minimalhtml
editor: ckeditor editor: ckeditor5
settings: settings:
toolbar: toolbar:
rows: items:
- - bold
- - italic
name: Formatting - '|'
items: - link
- Bold - '|'
- Italic - bulletedList
- - numberedList
name: Links - '|'
items: - blockQuote
- DrupalLink - '|'
- DrupalUnlink - sourceEditing
- - '|'
name: Lists - code
items:
- BulletedList
- NumberedList
-
name: Media
items:
- Blockquote
-
name: Tools
items:
- Source
plugins: plugins:
linebreaks: ckeditor5_list:
properties:
reversed: false
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags:
- '<cite>'
- '<dl>'
- '<dt>'
- '<dd>'
- '<abbr title>'
- '<a hreflang>'
- '<blockquote cite>'
- '<ul type>'
- '<ol type>'
editor_advanced_link_link:
enabled_attributes: { }
linkit_extension:
linkit_enabled: false
wysiwyg_linebreaks_extension:
method: force method: force
image_upload: image_upload:
status: false status: false

View file

@ -4,7 +4,6 @@ status: true
dependencies: dependencies:
module: module:
- editor - editor
- footnotes
- linkit - linkit
_core: _core:
default_config_hash: 73bBl0mQ4I5Md9_FoI1V9MErX_I6ykC9gNKwLqb80Ko default_config_hash: 73bBl0mQ4I5Md9_FoI1V9MErX_I6ykC9gNKwLqb80Ko
@ -30,22 +29,13 @@ filters:
status: true status: true
weight: 8 weight: 8
settings: { } settings: { }
filter_footnotes:
id: filter_footnotes
provider: footnotes
status: false
weight: 0
settings:
footnotes_collapse: '0'
footnotes_html: '0'
footnotes_css: '1'
filter_html: filter_html:
id: filter_html id: filter_html
provider: filter provider: filter
status: true status: true
weight: -10 weight: -10
settings: 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 type start> <strong> <em> <code> <li> <img src alt height width data-entity-uuid data-entity-type 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 class data-insert-attach data-insert-type title> <blockquote cite> <ul type> <ol type start> <strong> <em> <code> <li> <img src alt height width data-entity-uuid data-entity-type data-caption data-align class data-insert-attach data-insert-type sizes srcset title> <audio contenteditable controls data-insert-attach data-insert-type src type> <span class data-insert-attach data-insert-type> <video contenteditable controls data-insert-attach data-insert-type src type>'
filter_html_help: false filter_html_help: false
filter_html_nofollow: false filter_html_nofollow: false
filter_html_image_secure: filter_html_image_secure:

View file

@ -0,0 +1,26 @@
status: true
dependencies:
module:
- footnotes
name: Footnote
format: footnote
filters:
filter_html:
id: filter_html
provider: filter
status: true
weight: -10
settings:
allowed_html: '<br> <p> <strong> <em> <a href>'
filter_html_help: true
filter_html_nofollow: false
filter_footnotes:
id: filter_footnotes
provider: footnotes
status: false
weight: 0
settings:
footnotes_collapse: false
footnotes_css: true
footnotes_dialog: false
footnotes_footer_disable: false

View file

@ -44,9 +44,10 @@ filters:
status: true status: true
weight: -42 weight: -42
settings: settings:
footnotes_collapse: '0' footnotes_collapse: false
footnotes_html: '1' footnotes_css: true
footnotes_css: '1' footnotes_dialog: false
footnotes_footer_disable: false
filter_html: filter_html:
id: filter_html id: filter_html
provider: filter provider: filter

View file

@ -20,7 +20,7 @@ filters:
status: true status: true
weight: -10 weight: -10
settings: settings:
allowed_html: '<a href hreflang> <abbr title> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>' allowed_html: '<br> <p> <cite> <dl> <dt> <dd> <abbr title> <a hreflang href> <blockquote cite> <ul type> <ol type start> <strong> <em> <code> <li>'
filter_html_help: true filter_html_help: true
filter_html_nofollow: false filter_html_nofollow: false
filter_htmlcorrector: filter_htmlcorrector:

View file

@ -14,6 +14,10 @@ filters:
status: true status: true
weight: 0 weight: 0
settings: { } settings: { }
filter_footnotes:
settings:
footnotes_footer_disable: false
footnotes_dialog: false
filter_html_escape: filter_html_escape:
id: filter_html_escape id: filter_html_escape
provider: filter provider: filter

View file

@ -14,6 +14,10 @@ filters:
status: true status: true
weight: 0 weight: 0
settings: { } settings: { }
filter_footnotes:
settings:
footnotes_footer_disable: false
footnotes_dialog: false
filter_html: filter_html:
id: filter_html id: filter_html
provider: filter provider: filter

View file

@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- filter.format.footnote
- filter.format.full_html - filter.format.full_html
- media.type.image - media.type.image
- node.type.article - node.type.article
@ -46,6 +47,7 @@ permissions:
- 'edit terms in tags' - 'edit terms in tags'
- 'skip comment approval' - 'skip comment approval'
- 'update media' - 'update media'
- 'use text format footnote'
- 'use text format full_html' - 'use text format full_html'
- 'view the administration theme' - 'view the administration theme'
- 'view visitors counter' - 'view visitors counter'

View file

@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- filter.format.footnote
- filter.format.full_html - filter.format.full_html
module: module:
- comment - comment
@ -52,6 +53,7 @@ permissions:
- 'delete own files' - 'delete own files'
- 'revert all revisions' - 'revert all revisions'
- 'skip comment approval' - 'skip comment approval'
- 'use text format footnote'
- 'use text format full_html' - 'use text format full_html'
- 'view all revisions' - 'view all revisions'
- 'view own unpublished content' - 'view own unpublished content'

View file

@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- filter.format.footnote
- filter.format.full_html - filter.format.full_html
- node.type.blog - node.type.blog
module: module:
@ -36,6 +37,7 @@ permissions:
- 'edit own comments' - 'edit own comments'
- 'post comments' - 'post comments'
- 'skip comment approval' - 'skip comment approval'
- 'use text format footnote'
- 'use text format full_html' - 'use text format full_html'
- 'view own unpublished content' - 'view own unpublished content'
- 'view the administration theme' - 'view the administration theme'

View file

@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- filter.format.footnote
- filter.format.full_html - filter.format.full_html
module: module:
- block - block
@ -82,6 +83,7 @@ permissions:
- 'edit gdpr_checklist checklistapi checklist' - 'edit gdpr_checklist checklistapi checklist'
- 'revert all revisions' - 'revert all revisions'
- 'skip comment approval' - 'skip comment approval'
- 'use text format footnote'
- 'use text format full_html' - 'use text format full_html'
- 'view all revisions' - 'view all revisions'
- 'view own unpublished content' - 'view own unpublished content'