Skip to content

Commit dcb62f3

Browse files
committed
chore: migrate to ckeditor 5
1 parent 2b53665 commit dcb62f3

21 files changed

+100
-122
lines changed

apps/silverback-drupal/config/sync/core.extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module:
66
block: 0
77
block_content: 0
88
breakpoint: 0
9-
ckeditor: 0
9+
ckeditor5: 0
1010
consumers: 0
1111
dblog: 0
1212
default_content: 0
Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,39 @@
1-
uuid: 977d5899-afe3-45db-9d2e-bf4eb0da3a20
1+
uuid: f5098a0c-477f-4ef5-9773-12812189af27
22
langcode: en
33
status: true
44
dependencies:
55
config:
66
- filter.format.rich
77
module:
8-
- ckeditor
8+
- ckeditor5
99
format: rich
10-
editor: ckeditor
10+
editor: ckeditor5
1111
settings:
1212
toolbar:
13-
rows:
14-
-
15-
-
16-
name: Formatting
17-
items:
18-
- Bold
19-
- Italic
20-
-
21-
name: Links
22-
items:
23-
- DrupalLink
24-
- DrupalUnlink
25-
-
26-
name: Lists
27-
items:
28-
- BulletedList
29-
- NumberedList
30-
-
31-
name: Media
32-
items:
33-
- Blockquote
34-
- DrupalMediaLibrary
35-
-
36-
name: Tools
37-
items:
38-
- Source
39-
plugins: { }
13+
items:
14+
- bold
15+
- italic
16+
- '|'
17+
- link
18+
- '|'
19+
- bulletedList
20+
- numberedList
21+
- '|'
22+
- blockQuote
23+
- drupalMedia
24+
- '|'
25+
- sourceEditing
26+
plugins:
27+
ckeditor5_list:
28+
properties:
29+
reversed: true
30+
startIndex: true
31+
multiBlock: true
32+
ckeditor5_sourceEditing:
33+
allowed_tags: { }
34+
linkit_extension:
35+
linkit_enabled: false
36+
media_media:
37+
allow_view_mode_override: false
4038
image_upload:
4139
status: false
Lines changed: 39 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,50 @@
1-
uuid: fdb9a5ef-c3a6-41de-b193-3e4324ca7d6d
1+
uuid: e6c397e6-006d-498c-bf84-560be1446df8
22
langcode: en
33
status: true
44
dependencies:
55
config:
66
- filter.format.webform_default
77
module:
8-
- ckeditor
8+
- ckeditor5
99
format: webform_default
10-
editor: ckeditor
10+
editor: ckeditor5
1111
settings:
1212
toolbar:
13-
rows:
14-
-
15-
-
16-
name: Formatting
17-
items:
18-
- Format
19-
- Bold
20-
- Italic
21-
- Superscript
22-
- Subscript
23-
-
24-
name: Media
25-
items:
26-
- SpecialChar
27-
- ImceImage
28-
-
29-
name: Linking
30-
items:
31-
- DrupalLink
32-
- DrupalUnlink
33-
-
34-
name: Lists
35-
items:
36-
- NumberedList
37-
- BulletedList
38-
-
39-
name: Indentation
40-
items:
41-
- Outdent
42-
- Indent
43-
-
44-
name: 'Block Formatting'
45-
items:
46-
- Blockquote
47-
-
48-
name: Tools
49-
items:
50-
- Source
51-
- Maximize
52-
plugins: { }
13+
items:
14+
- heading
15+
- '|'
16+
- bold
17+
- italic
18+
- subscript
19+
- superscript
20+
- '|'
21+
- specialCharacters
22+
- '|'
23+
- numberedList
24+
- bulletedList
25+
- '|'
26+
- link
27+
- '|'
28+
- indent
29+
- outdent
30+
- '|'
31+
- blockQuote
32+
- '|'
33+
- sourceEditing
34+
plugins:
35+
ckeditor5_heading:
36+
enabled_headings:
37+
- heading2
38+
- heading3
39+
- heading4
40+
- heading5
41+
- heading6
42+
ckeditor5_list:
43+
properties:
44+
reversed: true
45+
startIndex: true
46+
multiBlock: true
47+
ckeditor5_sourceEditing:
48+
allowed_tags: { }
5349
image_upload:
5450
status: false

apps/silverback-drupal/config/sync/filter.format.rich.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ filters:
1515
status: false
1616
weight: -10
1717
settings:
18-
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> <drupal-media data-entity-type data-entity-uuid data-view-mode data-align data-caption alt title>'
18+
allowed_html: ''
1919
filter_html_help: true
2020
filter_html_nofollow: false
2121
filter_htmlcorrector:
@@ -30,7 +30,10 @@ filters:
3030
status: false
3131
weight: 0
3232
settings:
33-
processor_settings: { }
33+
processor_settings:
34+
oembed:
35+
maxwidth: 800
36+
providers: "#https?://(www\\.)?youtube.com/watch.*#i | https://www.youtube.com/oembed | true\r\n#https?://youtu\\.be/\\w*#i | https://www.youtube.com/oembed | true\r\n#https?://(www\\.)?vimeo\\.com/\\w*#i | http://vimeo.com/api/oembed.json | true\r\n#http://(www\\.)?hulu\\.com/watch/.*#i | http://www.hulu.com/api/oembed.json | true\r\n#https?://(www\\.)?twitter.com/.+?/status(es)?/.*#i | https://api.twitter.com/1/statuses/oembed.json | true\r\n#https?:\\/\\/(www\\.)?google\\.com\\/maps\\/embed\\?pb\\=.*#i | http://open.iframe.ly/api/oembed | true\r\n#https?://maps.google.com/maps.*#i | google-maps | LOCAL\r\n#https?://docs.google.com/(document|spreadsheet)/.*#i | google-docs | LOCAL"
3437
media_embed:
3538
id: media_embed
3639
provider: media

apps/silverback-drupal/config/sync/language/fr/webform.settings.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ settings:
66
default_reset_button_label: Réinitialiser
77
default_delete_button_label: Supprimer
88
default_form_confidential_message: 'Ce formulaire est confidentiel. Vous devez vous <a href="[site:login-url]/logout?destination=[current-page:url:relative]">déconnecter</a> pour l''utiliser.'
9-
default_form_access_denied_message: 'Veuillez vous connecter pour accéder à ce formulaire.'
109
default_form_required_label: 'Indique si le champs est requis'
1110
default_wizard_prev_button_label: '< Précédent'
1211
default_wizard_next_button_label: 'Suivant >'
@@ -26,7 +25,6 @@ settings:
2625
default_confirmation_message: 'Nouvelle soumission ajoutée à [webform:title]'
2726
default_confirmation_back_label: 'Retour au formulaire'
2827
default_submission_label: '[webform_submission:submitted-to]: Soumission #[webform_submission:serial]'
29-
default_submission_access_denied_message: 'Veuillez vous connecter pour accéder à cette soumission.'
3028
default_submission_locked_message: 'Cette soumission a été verrouillée.'
3129
default_autofill_message: 'Cette soumission a été pré-remplie grâce à votre précédente soumission.'
3230
dialog_options:
@@ -39,8 +37,6 @@ settings:
3937
element:
4038
empty_message: '{Vide}'
4139
default_more_title: Plus
42-
file:
43-
file_private_redirect_message: 'Veuillez vous connecter accéder au fichier transféré.'
4440
mail:
4541
default_body_html: "<p>Envoyé le [webform_submission:created]</p>\r\n<p>Envoyé par : [webform_submission:user]</p>\r\n<p>Les valeurs soumises sont :</p>\r\n[webform_submission:values]\n"
4642
test:

apps/silverback-drupal/config/sync/views.view.archive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ display:
2929
type: mini
3030
options:
3131
offset: 0
32+
pagination_heading_level: h4
3233
items_per_page: 10
3334
total_pages: 0
3435
id: 0
@@ -43,7 +44,6 @@ display:
4344
items_per_page_options_all_label: '- All -'
4445
offset: false
4546
offset_label: Offset
46-
pagination_heading_level: h4
4747
exposed_form:
4848
type: basic
4949
options:

apps/silverback-drupal/config/sync/views.view.block_content.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ display:
273273
type: mini
274274
options:
275275
offset: 0
276+
pagination_heading_level: h4
276277
items_per_page: 50
277278
total_pages: null
278279
id: 0
@@ -287,7 +288,6 @@ display:
287288
items_per_page_options_all_label: '- All -'
288289
offset: false
289290
offset_label: Offset
290-
pagination_heading_level: h4
291291
exposed_form:
292292
type: basic
293293
options:

apps/silverback-drupal/config/sync/views.view.campaign_urls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ display:
545545
type: full
546546
options:
547547
offset: 0
548+
pagination_heading_level: h4
548549
items_per_page: 25
549550
total_pages: null
550551
id: 0
@@ -562,7 +563,6 @@ display:
562563
offset: false
563564
offset_label: Offset
564565
quantity: 9
565-
pagination_heading_level: h4
566566
exposed_form:
567567
type: basic
568568
options:

apps/silverback-drupal/config/sync/views.view.content.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ display:
249249
pager:
250250
type: full
251251
options:
252+
pagination_heading_level: h4
252253
items_per_page: 50
253254
tags:
254255
next: 'Next ›'
255256
previous: '‹ Previous'
256257
first: '« First'
257258
last: 'Last »'
258-
pagination_heading_level: h4
259259
exposed_form:
260260
type: basic
261261
options:

apps/silverback-drupal/config/sync/views.view.files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ display:
470470
type: mini
471471
options:
472472
offset: 0
473+
pagination_heading_level: h4
473474
items_per_page: 50
474475
total_pages: 0
475476
id: 0
@@ -484,7 +485,6 @@ display:
484485
items_per_page_options_all_label: '- All -'
485486
offset: false
486487
offset_label: Offset
487-
pagination_heading_level: h4
488488
exposed_form:
489489
type: basic
490490
options:
@@ -1006,6 +1006,7 @@ display:
10061006
type: mini
10071007
options:
10081008
offset: 0
1009+
pagination_heading_level: h4
10091010
items_per_page: 10
10101011
total_pages: 0
10111012
id: 0
@@ -1020,7 +1021,6 @@ display:
10201021
items_per_page_options_all_label: '- All -'
10211022
offset: false
10221023
offset_label: Offset
1023-
pagination_heading_level: h4
10241024
empty: { }
10251025
arguments:
10261026
fid:

0 commit comments

Comments
 (0)