converted wysiwyg editor to ckeditor5

This commit is contained in:
2024-09-18 12:54:19 +02:00
parent ffc5fac46f
commit 64d6f926ee
28 changed files with 212 additions and 83 deletions
+1
View File
@@ -30,6 +30,7 @@
"drupal/autologout": "^1.3", "drupal/autologout": "^1.3",
"drupal/basic": "^3.0@alpha", "drupal/basic": "^3.0@alpha",
"drupal/bulkdelete": "1.x-dev@dev", "drupal/bulkdelete": "1.x-dev@dev",
"drupal/classy": "^1.0",
"drupal/color_field": "^3.0", "drupal/color_field": "^3.0",
"drupal/composer_deploy": "^1.7", "drupal/composer_deploy": "^1.7",
"drupal/config_devel": "^1.9", "drupal/config_devel": "^1.9",
Generated
+111 -1
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "6f88170d270f862d1b00ce2bf9d901cb", "content-hash": "ac9d40d23b0f3ccbd293f41040e911e3",
"packages": [ "packages": [
{ {
"name": "asm89/stack-cors", "name": "asm89/stack-cors",
@@ -2207,6 +2207,60 @@
"source": "https://git.drupalcode.org/project/bulkdelete" "source": "https://git.drupalcode.org/project/bulkdelete"
} }
}, },
{
"name": "drupal/classy",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/classy.git",
"reference": "1.0.2"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/classy-1.0.2.zip",
"reference": "1.0.2",
"shasum": "c2f4fbfd9ae7d4e0cbd952d96247d00a0759da06"
},
"require": {
"drupal/core": "^9 || ^10",
"drupal/stable": "^2.0.0"
},
"type": "drupal-theme",
"extra": {
"drupal": {
"version": "1.0.2",
"datestamp": "1663949784",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "bnjmnm",
"homepage": "https://www.drupal.org/user/2369194"
},
{
"name": "davidhernandez",
"homepage": "https://www.drupal.org/user/274559"
},
{
"name": "lauriii",
"homepage": "https://www.drupal.org/user/1078742"
}
],
"description": "The Classy base theme from Drupal 8/9 moved to contrib",
"homepage": "https://drupal.org/project/classy",
"support": {
"source": "https://git.drupalcode.org/project/classy",
"issues": "https://drupal.org/project/issues/classy"
}
},
{ {
"name": "drupal/color_field", "name": "drupal/color_field",
"version": "3.0.1", "version": "3.0.1",
@@ -4913,6 +4967,62 @@
"issues": "https://drupal.org/project/issues/simple_sitemap" "issues": "https://drupal.org/project/issues/simple_sitemap"
} }
}, },
{
"name": "drupal/stable",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/stable.git",
"reference": "2.0.1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/stable-2.0.1.zip",
"reference": "2.0.1",
"shasum": "5da92926e7ce9e08795f62594d70ee7187a888a9"
},
"require": {
"drupal/core": "^9 || ^10"
},
"type": "drupal-theme",
"extra": {
"drupal": {
"version": "2.0.1",
"datestamp": "1721132952",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "bnjmnm",
"homepage": "https://www.drupal.org/user/2369194"
},
{
"name": "lauriii",
"homepage": "https://www.drupal.org/user/1078742"
},
{
"name": "Rajeshreeputra",
"homepage": "https://www.drupal.org/user/3418561"
},
{
"name": "star-szr",
"homepage": "https://www.drupal.org/user/1167326"
}
],
"description": "A base theme using Drupal 8.0.0's core markup and CSS.",
"homepage": "https://www.drupal.org/project/stable",
"support": {
"source": "https://git.drupalcode.org/project/stable"
}
},
{ {
"name": "drupal/synonyms", "name": "drupal/synonyms",
"version": "2.1.4", "version": "2.1.4",
@@ -1,5 +1,5 @@
uuid: 38c2ac3c-777e-4839-9242-2de2c1557d7c uuid: 38c2ac3c-777e-4839-9242-2de2c1557d7c
langcode: en langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
@@ -1,5 +1,5 @@
uuid: 13ffffee-26eb-446f-bc8b-327d06b8d2e1 uuid: 13ffffee-26eb-446f-bc8b-327d06b8d2e1
langcode: en langcode: fr
status: true status: true
dependencies: dependencies:
config: config:
@@ -1,5 +1,5 @@
uuid: b47804c0-db49-4c3d-abec-3367f6225f33 uuid: b47804c0-db49-4c3d-abec-3367f6225f33
langcode: en langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
+5
View File
@@ -0,0 +1,5 @@
_core:
default_config_hash: FDmXqAGlITLYpZe80ONLw6Y1KEMSvqcMJX1pj2dk6nw
langcode: fr
prefixes:
- drupal
+2
View File
@@ -14,7 +14,9 @@ module:
breakpoint: 0 breakpoint: 0
bulkdelete: 0 bulkdelete: 0
ckeditor: 0 ckeditor: 0
ckeditor5: 0
color_field: 0 color_field: 0
composer_deploy: 0
config: 0 config: 0
config_devel: 0 config_devel: 0
config_filter: 0 config_filter: 0
+32 -43
View File
@@ -1,62 +1,51 @@
uuid: 697b5a71-705e-4a0a-bee6-d6e8cf8cfeca uuid: 2c46d71d-67dc-4648-89b8-68a51511ba90
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
config: config:
- filter.format.wysiwyg - filter.format.wysiwyg
module: module:
- ckeditor - ckeditor5
format: wysiwyg format: wysiwyg
editor: ckeditor editor: ckeditor5
settings: settings:
toolbar: toolbar:
rows:
-
-
name: Formats
items: items:
- Styles - style
- Bold - bold
- Italic - italic
- Underline - underline
- - '|'
name: Liens - link
items: - '|'
- DrupalLink - bulletedList
- DrupalUnlink - numberedList
- - '|'
name: Listes - blockQuote
items: - drupalInsertImage
- BulletedList - '|'
- NumberedList - sourceEditing
-
name: Média
items:
- Blockquote
- DrupalImage
-
name: Outils
items:
- Source
-
name: Copy/Paste
items:
- Copy
- Cut
- Paste
- PasteText
- PasteFromWord
plugins: plugins:
drupallink: ckeditor5_style:
styles:
-
label: Inter-titre
element: '<h4 class="inter-titre">'
ckeditor5_sourceEditing:
allowed_tags: { }
ckeditor5_list:
reversed: true
startIndex: true
ckeditor5_imageResize:
allow_resize: true
linkit_extension:
linkit_enabled: true linkit_enabled: true
linkit_profile: collection linkit_profile: collection
stylescombo:
styles: h4.inter-titre|Inter-titre
image_upload: image_upload:
status: true status: true
scheme: public scheme: public
directory: wysiwyg-images directory: wysiwyg-images
max_size: '' max_size: ''
max_dimensions: max_dimensions:
width: null width: 0
height: null height: 0
+1 -1
View File
@@ -48,7 +48,7 @@ filters:
status: false status: false
weight: -43 weight: -43
settings: settings:
allowed_html: '<em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h5 id> <h6 id> <u> <a href hreflang !href accesskey id rel target title data-entity-type data-entity-uuid data-entity-substitution> <img src alt data-entity-type data-entity-uuid data-entity-substitution> <p> <h1> <pre> <h4 id class="inter-titre">' allowed_html: '<h4 class="inter-titre">'
filter_html_help: true filter_html_help: true
filter_html_nofollow: false filter_html_nofollow: false
audio_links: audio_links:
@@ -0,0 +1,2 @@
settings:
label: Help
@@ -0,0 +1,2 @@
settings:
label: 'User account menu'
@@ -0,0 +1,2 @@
settings:
label: Breadcrumbs
@@ -0,0 +1 @@
label: Default
@@ -0,0 +1 @@
label: 'Change a node to next Workflow state'
@@ -0,0 +1 @@
label: 'Edit content'
@@ -0,0 +1 @@
label: 'Edit taxonomy terms'
@@ -0,0 +1 @@
label: 'Edit users'
@@ -1,26 +1,13 @@
label: 'Workflow Entity history'
description: 'Enable this View to configure the history tab.'
display: display:
default: default:
display_title: Master
display_options: display_options:
exposed_form:
options:
submit_button: Apply
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
sort_asc_label: Asc
sort_desc_label: Desc
pager:
options:
expose:
items_per_page_label: 'Items per page'
items_per_page_options_all_label: '- All -'
offset_label: Offset
tags:
previous: ‹‹
next: ››
fields: fields:
from_sid:
separator: ', '
label: 'From state'
to_sid:
separator: ', '
label: 'To state'
hid: hid:
label: 'Transition ID' label: 'Transition ID'
separator: ', ' separator: ', '
@@ -30,12 +17,6 @@ display:
field_name: field_name:
label: 'Field name' label: 'Field name'
separator: ', ' separator: ', '
from_sid:
label: 'From state'
separator: ', '
to_sid:
label: 'To state'
separator: ', '
uid: uid:
label: 'User ID' label: 'User ID'
separator: ', ' separator: ', '
@@ -44,12 +25,31 @@ display:
separator: ', ' separator: ', '
operations: operations:
label: Operations label: Operations
title: 'Workflow history'
pager:
options:
tags:
next: ››
previous: ‹‹
expose:
items_per_page_label: 'Items per page'
items_per_page_options_all_label: '- All -'
offset_label: Offset
exposed_form:
options:
submit_button: Apply
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
sort_asc_label: Asc
sort_desc_label: Desc
arguments: arguments:
entity_id: entity_id:
exception: exception:
title: All title: All
title: 'Workflow history' display_title: Master
workflow_history_tab: workflow_history_tab:
display_title: 'Workflow history tab' display_title: 'Workflow history tab'
display_options: display_options:
display_description: 'Replaces the transition list in the Workflow tab.' display_description: 'Replaces the transition list in the Workflow tab.'
label: 'Workflow Entity history'
description: 'Enable this View to configure the history tab.'
@@ -1,12 +1,12 @@
uuid: 4a884f21-148c-4983-b9a0-9c13ad9a41b9 uuid: 4a884f21-148c-4983-b9a0-9c13ad9a41b9
langcode: en langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
- node - node
_core: _core:
default_config_hash: 0Jw_BFJCCtWk187tIYvME58VFpYwPaAdrc4eRtAyHH0 default_config_hash: 0Jw_BFJCCtWk187tIYvME58VFpYwPaAdrc4eRtAyHH0
label: Default label: Master
id: default id: default
description: 'A default Linkit profile' description: 'A default Linkit profile'
matchers: matchers:
@@ -17,7 +17,7 @@ matchers:
metadata: '[node:content-type:name] #[node:nid] | [node:created:medium] by [node:author]' metadata: '[node:content-type:name] #[node:nid] | [node:created:medium] by [node:author]'
bundles: { } bundles: { }
group_by_bundle: false group_by_bundle: false
include_unpublished: false
substitution_type: canonical substitution_type: canonical
limit: 100 limit: 100
include_unpublished: false
weight: 0 weight: 0
@@ -1,5 +1,5 @@
uuid: f205aad5-809d-45af-bd88-9ed0376767e9 uuid: f205aad5-809d-45af-bd88-9ed0376767e9
langcode: en langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
@@ -1,5 +1,5 @@
uuid: bd31b941-546e-40ec-9fb2-d4406b0bf8d3 uuid: bd31b941-546e-40ec-9fb2-d4406b0bf8d3
langcode: en langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
@@ -1,5 +1,5 @@
uuid: 1bb44a7a-18e2-42c6-a6d4-d44ad73040d7 uuid: 1bb44a7a-18e2-42c6-a6d4-d44ad73040d7
langcode: en langcode: fr
status: true status: true
dependencies: dependencies:
module: module:
+2
View File
@@ -15,6 +15,8 @@ dependencies:
- taxonomy.vocabulary.genres - taxonomy.vocabulary.genres
- taxonomy.vocabulary.langues - taxonomy.vocabulary.langues
- taxonomy.vocabulary.locuteurs - taxonomy.vocabulary.locuteurs
- workflow.workflow.corpus_documents
- workflow.workflow.generique
module: module:
- actions_permissions - actions_permissions
- content_translation - content_translation
+2 -1
View File
@@ -5,11 +5,12 @@ dependencies:
config: config:
- filter.format.wysiwyg - filter.format.wysiwyg
- rest.resource.user_registration - rest.resource.user_registration
- workflow.workflow.corpus_documents
- workflow.workflow.generique
module: module:
- devel - devel
- filter - filter
- rest - rest
- synonyms
- system - system
- workflow - workflow
_core: _core:
+2 -1
View File
@@ -5,12 +5,13 @@ dependencies:
config: config:
- filter.format.wysiwyg - filter.format.wysiwyg
- rest.resource.user_registration - rest.resource.user_registration
- workflow.workflow.corpus_documents
- workflow.workflow.generique
module: module:
- devel - devel
- edlp_studio - edlp_studio
- filter - filter
- rest - rest
- synonyms
- system - system
- workflow - workflow
_core: _core:
+2
View File
@@ -9,6 +9,8 @@ dependencies:
- taxonomy.vocabulary.genres - taxonomy.vocabulary.genres
- taxonomy.vocabulary.langues - taxonomy.vocabulary.langues
- taxonomy.vocabulary.locuteurs - taxonomy.vocabulary.locuteurs
- workflow.workflow.corpus_documents
- workflow.workflow.generique
module: module:
- filter - filter
- node - node
+2
View File
@@ -2,6 +2,8 @@ uuid: 6da9406b-e985-4fbd-a6d1-9c134f04220e
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
config:
- workflow.workflow.generique
module: module:
- workflow - workflow
id: invite id: invite
@@ -21,3 +21,6 @@ regions:
footer_left: 'Footer Left' footer_left: 'Footer Left'
footer_center: 'Footer Center' footer_center: 'Footer Center'
footer_right: 'Footer Right' footer_right: 'Footer Right'
dependencies:
- classy:classy