Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-bot authored Feb 22, 2024
1 parent fbf4cce commit 3bbf30f
Show file tree
Hide file tree
Showing 11 changed files with 248 additions and 58 deletions.
81 changes: 63 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions conf/cmi/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module:
block: 0
breakpoint: 0
ckeditor5: 0
ckeditor5_paste_filter: 0
config: 0
config_filter: 0
config_ignore: 0
Expand Down
106 changes: 86 additions & 20 deletions conf/cmi/editor.editor.full_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
module:
- ckeditor5
_core:
default_config_hash: rMPZSfUdZCsb509LFsy6EZYI2wjtuonQtf6afD85sQ0
default_config_hash: yobPkyFHZ_T4qFbTwAFPEgpYYtGpRMfUOE4xTRUVREk
format: full_html
editor: ckeditor5
settings:
Expand Down Expand Up @@ -47,28 +47,94 @@ settings:
reversed: false
startIndex: true
multiBlock: true
ckeditor5_paste_filter_pasteFilter:
enabled: true
filters:
-
enabled: true
weight: 0
search: '<o:p><\/o:p>'
replace: ''
-
enabled: true
weight: 1
search: '(<[^>]*) (style="[^"]*")'
replace: $1
-
enabled: true
weight: 2
search: '(<[^>]*) (face="[^"]*")'
replace: $1
-
enabled: true
weight: 3
search: '(<[^>]*) (class="[^"]*")'
replace: $1
-
enabled: true
weight: 4
search: '(<[^>]*) (valign="[^"]*")'
replace: $1
-
enabled: true
weight: 5
search: '<font[^>]*>'
replace: ''
-
enabled: true
weight: 6
search: '<\/font>'
replace: ''
-
enabled: true
weight: 7
search: '<span(?![^>]*\b(?:dir|lang)="[^"]*")[^>]*>(.*?)<\/span>'
replace: $1
-
enabled: true
weight: 8
search: '<p><span lang="[^"]*"><\/span><\/p>'
replace: ''
-
enabled: true
weight: 9
search: '<span lang="[^"]*"><\/span>'
replace: ''
-
enabled: true
weight: 10
search: '<p>&nbsp;<\/p>'
replace: ''
-
enabled: true
weight: 11
search: '<p><\/p>'
replace: ''
-
enabled: true
weight: 12
search: '<b><\/b>'
replace: ''
-
enabled: true
weight: 13
search: '<i><\/i>'
replace: ''
-
enabled: true
weight: 14
search: '<a name="OLE_LINK[^"]*">(.*?)<\/a>'
replace: $1
-
enabled: true
weight: 15
search: '<a name="[^"]*">(.*?)<\/a>'
replace: $1
ckeditor5_sourceEditing:
allowed_tags:
- '<dl>'
- '<dt>'
- '<dd>'
- '<blockquote role aria-* cite class>'
- '<div role aria-* class>'
- '<img src alt height width data-entity-type data-entity-uuid data-align data-caption data-responsive-image-style>'
- '<span role aria-* class>'
- '<ul type>'
- '<ol type>'
- '<h2 id>'
- '<h3 id>'
- '<h4 id>'
- '<h5 id>'
- '<h6 id>'
- '<figure tabindex>'
- '<figcaption>'
allowed_tags: { }
helfi_ckeditor_helfi_link:
helfi_link_attributes:
- '<a aria-label class data-design data-hds-icon-start data-is-external data-link-text data-protocol data-selected-icon data-hds-component data-hds-variant id rel role target="_blank" title>'
- '<span aria-hidden class role>'
- '<a data-hds-icon-start data-is-external data-protocol data-hds-component data-hds-variant rel target="_blank">'
linkit_extension:
linkit_enabled: true
linkit_profile: helfi
Expand Down
Loading

0 comments on commit 3bbf30f

Please sign in to comment.