Skip to content

Commit

Permalink
BNALD-67 CKEditor 4 -> 5
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Sep 27, 2024
1 parent 4757033 commit 11b1bc2
Show file tree
Hide file tree
Showing 61 changed files with 242 additions and 115 deletions.
5 changes: 5 additions & 0 deletions configuration/core.entity_form_display.node.page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ content:
settings:
display_label: true
third_party_settings: { }
simple_sitemap:
weight: 10
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 8
Expand Down
1 change: 1 addition & 0 deletions configuration/core.entity_form_mode.user.register.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: flXhTcp55yLcyy7ZLOhPGKGZobZQJdkAFVWV3LseiuI
id: user.register
label: Register
description: ''
targetEntityType: user
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.block.token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- block
id: block.token
label: Token
description: ''
targetEntityType: block
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.block_content.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: 4tedlMuvQjDOdvHdw86_e-2Rt78aR7TGFMfOK8Ejppg
id: block_content.full
label: Full
description: ''
targetEntityType: block_content
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- block_content
id: block_content.token
label: Token
description: ''
targetEntityType: block_content
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.comment.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: K7eNlfU7NEUajz01wItywZklr2oaPgL6s1_97fmDXLA
id: comment.full
label: 'Full comment'
description: ''
targetEntityType: comment
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.comment.token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- comment
id: comment.token
label: Token
description: ''
targetEntityType: comment
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- contact
id: contact_message.token
label: Token
description: ''
targetEntityType: contact_message
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.file.token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- file
id: file.token
label: Token
description: ''
targetEntityType: file
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- menu_link_content
id: menu_link_content.token
label: Token
description: ''
targetEntityType: menu_link_content
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.node.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: ElrtInxGjZd7GaapJ5O9n-ugi2hG2IxFivtgn0tHOsk
id: node.full
label: 'Full content'
description: ''
targetEntityType: node
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.node.rss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: vlYzr-rp2f9NMp-Qlr4sFjlqRq-90mco5-afLNGwCrU
id: node.rss
label: RSS
description: ''
targetEntityType: node
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.node.search_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: fVFfJv_GzBRE-wpRHbfD5a3VjnhbEOXG6lvRd3uaccY
id: node.search_index
label: 'Search index'
description: ''
targetEntityType: node
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.node.search_result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: 6GCOQ-jP2RbdbHA5YWQ6bT8CfGbqrBYKOSC_XY4E3ZM
id: node.search_result
label: 'Search result highlighting input'
description: ''
targetEntityType: node
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.node.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4
id: node.teaser
label: Teaser
description: ''
targetEntityType: node
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.node.token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- node
id: node.token
label: Token
description: ''
targetEntityType: node
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.taxonomy_term.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: '-PPKjsNQPvoIDjOuUAvlLocYD976MNjb9Zpgyz5_BWE'
id: taxonomy_term.full
label: 'Taxonomy term page'
description: ''
targetEntityType: taxonomy_term
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- taxonomy
id: taxonomy_term.token
label: Token
description: ''
targetEntityType: taxonomy_term
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.user.compact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: 71CSAr_LNPcgu6D6jI4INl1KATkahmeyUFBETAWya8g
id: user.compact
label: Compact
description: ''
targetEntityType: user
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.user.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _core:
default_config_hash: mQIF_foYjmnVSr9MpcD4CTaJE_FpO1AyDd_DskztGhM
id: user.full
label: 'User account'
description: ''
targetEntityType: user
cache: true
1 change: 1 addition & 0 deletions configuration/core.entity_view_mode.user.token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- user
id: user.token
label: Token
description: ''
targetEntityType: user
cache: true
1 change: 1 addition & 0 deletions configuration/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module:
bnald_core: 0
breakpoint: 0
ckeditor: 0
ckeditor5: 0
comment: 0
config: 0
contact: 0
Expand Down
77 changes: 41 additions & 36 deletions configuration/editor.editor.restricted_html.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,52 @@
uuid: ca14f7e2-ed14-41f4-bb89-f76dd4690cd0
uuid: 48b40ec5-246d-4968-b826-ee9f38220222
langcode: en
status: true
dependencies:
config:
- filter.format.restricted_html
module:
- ckeditor
- ckeditor5
format: restricted_html
editor: ckeditor
editor: ckeditor5
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Bold
- Italic
-
name: Links
items:
- DrupalLink
- DrupalUnlink
-
name: Lists
items:
- BulletedList
- NumberedList
-
name: Media
items:
- Blockquote
- DrupalImage
-
name: Tools
items:
- Source
plugins: { }
items:
- code
- bold
- italic
- '|'
- link
- '|'
- bulletedList
- numberedList
- '|'
- blockQuote
- drupalInsertImage
- '|'
- sourceEditing
plugins:
ckeditor5_imageResize:
allow_resize: true
ckeditor5_list:
properties:
reversed: false
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags:
- '<cite>'
- '<dl>'
- '<dt>'
- '<dd>'
- '<h2 id>'
- '<h3 id>'
- '<h4 id>'
- '<h5 id>'
- '<h6 id>'
- '<a hreflang>'
- '<blockquote cite>'
- '<ul type>'
- '<ol type>'
- '<img data-entity-type data-entity-uuid>'
image_upload:
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null
1 change: 1 addition & 0 deletions configuration/field.field.node.page.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ default_value_callback: ''
settings:
display_summary: false
required_summary: false
allowed_formats: { }
field_type: text_with_summary
28 changes: 14 additions & 14 deletions configuration/filter.format.basic_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ name: 'Basic HTML'
format: basic_html
weight: 0
filters:
filter_html:
id: filter_html
provider: filter
editor_file_reference:
id: editor_file_reference
provider: editor
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
weight: 11
settings: { }
filter_align:
id: filter_align
provider: filter
Expand All @@ -31,15 +28,18 @@ filters:
status: true
weight: 8
settings: { }
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_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: { }
24 changes: 12 additions & 12 deletions configuration/filter.format.full_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ name: 'Full HTML'
format: full_html
weight: 1
filters:
editor_file_reference:
id: editor_file_reference
provider: editor
status: true
weight: 11
settings: { }
filter_align:
id: filter_align
provider: filter
Expand All @@ -22,18 +28,6 @@ filters:
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: { }
filter_html:
id: filter_html
provider: filter
Expand All @@ -43,3 +37,9 @@ filters:
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> <s> <sup> <sub> <img src alt data-entity-type data-entity-uuid data-align data-caption> <table> <caption> <tbody> <thead> <tfoot> <th> <td> <tr> <hr> <p> <h1> <pre>'
filter_html_help: true
filter_html_nofollow: false
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: 10
settings: { }
12 changes: 6 additions & 6 deletions configuration/filter.format.plain_text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ name: 'Plain text'
format: plain_text
weight: 10
filters:
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
filter_html_escape:
id: filter_html_escape
provider: filter
Expand All @@ -21,9 +27,3 @@ filters:
weight: 0
settings:
filter_url_length: 72
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
14 changes: 7 additions & 7 deletions configuration/filter.format.restricted_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ name: 'Restricted HTML'
format: restricted_html
weight: 0
filters:
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
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> <img src alt data-entity-type data-entity-uuid>'
allowed_html: '<br> <p> <cite> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <a hreflang href> <blockquote cite> <ul type> <ol type start> <img data-entity-type data-entity-uuid src alt height width> <strong> <em> <code> <li>'
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
Expand Down
Loading

0 comments on commit 11b1bc2

Please sign in to comment.