Skip to content
Snippets Groups Projects
Commit 87ab1474 authored by Stew West's avatar Stew West
Browse files

Resolve #3427755 "Ckeditor 5 paste"

parent 66d272d6
No related branches found
No related tags found
1 merge request!146Resolve #3427755 "Ckeditor 5 paste"
Pipeline #131071 passed
......@@ -18,6 +18,7 @@
"drupal/blockgroup": "^2.0",
"drupal/ckeditor5_show_block": "^1.9",
"drupal/ckeditor_link_styles": "^1.0",
"drupal/ckeditor5_paste_filter": "^1.0",
"drupal/color_field": "^3.0",
"drupal/config_update": "^2.0@alpha",
"drupal/core": "10.2.4",
......@@ -78,14 +79,30 @@
},
"extra": {
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"web/themes/custom/{$name}": ["type:drupal-custom-theme"],
"web/modules/custom/{$name}": ["type:drupal-custom-module"],
"drush/contrib/{$name}": ["type:drupal-drush"]
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"drush/contrib/{$name}": [
"type:drupal-drush"
]
},
"enable-patching": true,
"patchLevel": {
......@@ -127,7 +144,9 @@
{
"type": "composer",
"url": "https://packages.drupal.org/8",
"exclude": ["drupal/sector"]
"exclude": [
"drupal/sector"
]
},
{
"type": "composer",
......
......@@ -48,8 +48,83 @@ settings:
- heading4
- heading5
ckeditor5_list:
reversed: true
startIndex: true
properties:
reversed: true
startIndex: true
multiBlock: true
ckeditor5_paste_filter_pasteFilter:
enabled: true
filters:
-
enabled: true
weight: -10
search: '<o:p><\/o:p>'
replace: ''
-
enabled: true
weight: -9
search: '(<[^>]*) (style="[^"]*")'
replace: $1
-
enabled: true
weight: -8
search: '(<[^>]*) (face="[^"]*")'
replace: $1
-
enabled: true
weight: -7
search: '(<[^>]*) (class="[^"]*")'
replace: $1
-
enabled: true
weight: -6
search: '(<[^>]*) (valign="[^"]*")'
replace: $1
-
enabled: true
weight: -5
search: '<font[^>]*>'
replace: ''
-
enabled: true
weight: -4
search: '<\/font>'
replace: ''
-
enabled: true
weight: -3
search: '<span[^>]*>'
replace: ''
-
enabled: true
weight: -2
search: '<\/span>'
replace: ''
-
enabled: true
weight: -1
search: '<p>&nbsp;<\/p>'
replace: ''
-
enabled: true
weight: 0
search: '<p><\/p>'
replace: ''
-
enabled: true
weight: 1
search: '<b><\/b>'
replace: ''
-
enabled: true
weight: 2
search: '<i><\/i>'
replace: ''
-
enabled: true
weight: 3
search: '<a name="OLE_LINK[^"]*">(.*?)<\/a>'
replace: $1
ckeditor5_show_block_show_block:
enable_show_block_default: 0
ckeditor5_sourceEditing:
......@@ -74,7 +149,7 @@ settings:
label: 'Centred paragraph'
element: '<p class="text-center">'
-
label: 'Highlight'
label: Highlight
element: '<mark class="highlight">'
-
label: 'Small text'
......
......@@ -47,8 +47,83 @@ settings:
- heading4
- heading5
ckeditor5_list:
reversed: true
startIndex: true
properties:
reversed: true
startIndex: true
multiBlock: true
ckeditor5_paste_filter_pasteFilter:
enabled: true
filters:
-
enabled: true
weight: -10
search: '<o:p><\/o:p>'
replace: ''
-
enabled: true
weight: -9
search: '(<[^>]*) (style="[^"]*")'
replace: $1
-
enabled: true
weight: -8
search: '(<[^>]*) (face="[^"]*")'
replace: $1
-
enabled: true
weight: -7
search: '(<[^>]*) (class="[^"]*")'
replace: $1
-
enabled: true
weight: -6
search: '(<[^>]*) (valign="[^"]*")'
replace: $1
-
enabled: true
weight: -5
search: '<font[^>]*>'
replace: ''
-
enabled: true
weight: -4
search: '<\/font>'
replace: ''
-
enabled: true
weight: -3
search: '<span[^>]*>'
replace: ''
-
enabled: true
weight: -2
search: '<\/span>'
replace: ''
-
enabled: true
weight: -1
search: '<p>&nbsp;<\/p>'
replace: ''
-
enabled: true
weight: 0
search: '<p><\/p>'
replace: ''
-
enabled: true
weight: 1
search: '<b><\/b>'
replace: ''
-
enabled: true
weight: 2
search: '<i><\/i>'
replace: ''
-
enabled: true
weight: 3
search: '<a name="OLE_LINK[^"]*">(.*?)<\/a>'
replace: $1
ckeditor5_show_block_show_block:
enable_show_block_default: 0
ckeditor5_sourceEditing:
......@@ -87,7 +162,7 @@ settings:
label: 'Centred paragraph'
element: '<p class="text-center">'
-
label: 'Highlight'
label: Highlight
element: '<mark class="highlight">'
-
label: 'Small text'
......
......@@ -27,6 +27,79 @@ settings:
enabled_alignments:
- center
- left
ckeditor5_paste_filter_pasteFilter:
enabled: true
filters:
-
enabled: true
weight: -10
search: '<o:p><\/o:p>'
replace: ''
-
enabled: true
weight: -9
search: '(<[^>]*) (style="[^"]*")'
replace: $1
-
enabled: true
weight: -8
search: '(<[^>]*) (face="[^"]*")'
replace: $1
-
enabled: true
weight: -7
search: '(<[^>]*) (class="[^"]*")'
replace: $1
-
enabled: true
weight: -6
search: '(<[^>]*) (valign="[^"]*")'
replace: $1
-
enabled: true
weight: -5
search: '<font[^>]*>'
replace: ''
-
enabled: true
weight: -4
search: '<\/font>'
replace: ''
-
enabled: true
weight: -3
search: '<span[^>]*>'
replace: ''
-
enabled: true
weight: -2
search: '<\/span>'
replace: ''
-
enabled: true
weight: -1
search: '<p>&nbsp;<\/p>'
replace: ''
-
enabled: true
weight: 0
search: '<p><\/p>'
replace: ''
-
enabled: true
weight: 1
search: '<b><\/b>'
replace: ''
-
enabled: true
weight: 2
search: '<i><\/i>'
replace: ''
-
enabled: true
weight: 3
search: '<a name="OLE_LINK[^"]*">(.*?)<\/a>'
replace: $1
ckeditor5_sourceEditing:
allowed_tags: { }
ckeditor5_style:
......
......@@ -10,6 +10,7 @@ dependencies:
- editor_advanced_link:editor_advanced_link
- linkit:linkit
- ckeditor_link_styles
- ckeditor5_paste_filter:ckeditor5_paste_filter
- ckeditor5_show_block:ckeditor5_show_block
- sector_text_formats:embedded_content
- anchor_link:anchor_link
\ No newline at end of file
- anchor_link:anchor_link
......@@ -61,6 +61,7 @@ install:
- blockgroup:blockgroup
- config_update:config_update
- ckeditor_link_styles:ckeditor_link_styles
- ckeditor5_paste_filter:ckeditor5_paste_filter
- ckeditor5_show_block:ckeditor5_show_block
- ctools:ctools
- default_content:default_content
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment