Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic update #770

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -10,6 +10,7 @@ module:
block: 0
breakpoint: 0
ckeditor5: 0
ckeditor5_paste_filter: 0
config: 0
config_ignore: 0
config_rewrite: 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