瀏覽代碼

converted wysiwyg editor to ckeditor5

bach 2 月之前
父節點
當前提交
64d6f926ee
共有 28 個文件被更改,包括 212 次插入83 次删除
  1. 1 0
      composer.json
  2. 111 1
      composer.lock
  3. 1 1
      config/sync/block.block.adminimal_theme_help.yml
  4. 1 1
      config/sync/block.block.basic_account_menu.yml
  5. 1 1
      config/sync/block.block.basic_breadcrumbs.yml
  6. 5 0
      config/sync/composer_deploy.settings.yml
  7. 2 0
      config/sync/core.extension.yml
  8. 33 44
      config/sync/editor.editor.wysiwyg.yml
  9. 1 1
      config/sync/filter.format.wysiwyg.yml
  10. 2 0
      config/sync/language/en/block.block.adminimal_theme_help.yml
  11. 2 0
      config/sync/language/en/block.block.basic_account_menu.yml
  12. 2 0
      config/sync/language/en/block.block.basic_breadcrumbs.yml
  13. 1 0
      config/sync/language/en/linkit.linkit_profile.default.yml
  14. 1 0
      config/sync/language/en/system.action.change_a_node_to_next_workflow_state.yml
  15. 1 0
      config/sync/language/en/system.action.node_edit_action.yml
  16. 1 0
      config/sync/language/en/system.action.taxonomy_term_edit_action.yml
  17. 1 0
      config/sync/language/en/system.action.user_edit_action.yml
  18. 26 26
      config/sync/language/en/views.view.workflow_entity_history.yml
  19. 3 3
      config/sync/linkit.linkit_profile.default.yml
  20. 1 1
      config/sync/system.action.node_edit_action.yml
  21. 1 1
      config/sync/system.action.taxonomy_term_edit_action.yml
  22. 1 1
      config/sync/system.action.user_edit_action.yml
  23. 2 0
      config/sync/user.role.admin.yml
  24. 2 1
      config/sync/user.role.anonymous.yml
  25. 2 1
      config/sync/user.role.authenticated.yml
  26. 2 0
      config/sync/user.role.collectionneur.yml
  27. 2 0
      config/sync/user.role.invite.yml
  28. 3 0
      web/themes/custom/edlptheme/edlptheme.info.yml

+ 1 - 0
composer.json

@@ -30,6 +30,7 @@
         "drupal/autologout": "^1.3",
         "drupal/basic": "^3.0@alpha",
         "drupal/bulkdelete": "1.x-dev@dev",
+        "drupal/classy": "^1.0",
         "drupal/color_field": "^3.0",
         "drupal/composer_deploy": "^1.7",
         "drupal/config_devel": "^1.9",

+ 111 - 1
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "6f88170d270f862d1b00ce2bf9d901cb",
+    "content-hash": "ac9d40d23b0f3ccbd293f41040e911e3",
     "packages": [
         {
             "name": "asm89/stack-cors",
@@ -2207,6 +2207,60 @@
                 "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",
             "version": "3.0.1",
@@ -4913,6 +4967,62 @@
                 "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",
             "version": "2.1.4",

+ 1 - 1
config/sync/block.block.adminimal_theme_help.yml

@@ -1,5 +1,5 @@
 uuid: 38c2ac3c-777e-4839-9242-2de2c1557d7c
-langcode: en
+langcode: fr
 status: true
 dependencies:
   module:

+ 1 - 1
config/sync/block.block.basic_account_menu.yml

@@ -1,5 +1,5 @@
 uuid: 13ffffee-26eb-446f-bc8b-327d06b8d2e1
-langcode: en
+langcode: fr
 status: true
 dependencies:
   config:

+ 1 - 1
config/sync/block.block.basic_breadcrumbs.yml

@@ -1,5 +1,5 @@
 uuid: b47804c0-db49-4c3d-abec-3367f6225f33
-langcode: en
+langcode: fr
 status: true
 dependencies:
   module:

+ 5 - 0
config/sync/composer_deploy.settings.yml

@@ -0,0 +1,5 @@
+_core:
+  default_config_hash: FDmXqAGlITLYpZe80ONLw6Y1KEMSvqcMJX1pj2dk6nw
+langcode: fr
+prefixes:
+  - drupal

+ 2 - 0
config/sync/core.extension.yml

@@ -14,7 +14,9 @@ module:
   breakpoint: 0
   bulkdelete: 0
   ckeditor: 0
+  ckeditor5: 0
   color_field: 0
+  composer_deploy: 0
   config: 0
   config_devel: 0
   config_filter: 0

+ 33 - 44
config/sync/editor.editor.wysiwyg.yml

@@ -1,62 +1,51 @@
-uuid: 697b5a71-705e-4a0a-bee6-d6e8cf8cfeca
+uuid: 2c46d71d-67dc-4648-89b8-68a51511ba90
 langcode: fr
 status: true
 dependencies:
   config:
     - filter.format.wysiwyg
   module:
-    - ckeditor
+    - ckeditor5
 format: wysiwyg
-editor: ckeditor
+editor: ckeditor5
 settings:
   toolbar:
-    rows:
-      -
-        -
-          name: Formats
-          items:
-            - Styles
-            - Bold
-            - Italic
-            - Underline
-        -
-          name: Liens
-          items:
-            - DrupalLink
-            - DrupalUnlink
-        -
-          name: Listes
-          items:
-            - BulletedList
-            - NumberedList
-        -
-          name: Média
-          items:
-            - Blockquote
-            - DrupalImage
-        -
-          name: Outils
-          items:
-            - Source
-        -
-          name: Copy/Paste
-          items:
-            - Copy
-            - Cut
-            - Paste
-            - PasteText
-            - PasteFromWord
+    items:
+      - style
+      - bold
+      - italic
+      - underline
+      - '|'
+      - link
+      - '|'
+      - bulletedList
+      - numberedList
+      - '|'
+      - blockQuote
+      - drupalInsertImage
+      - '|'
+      - sourceEditing
   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_profile: collection
-    stylescombo:
-      styles: h4.inter-titre|Inter-titre
 image_upload:
   status: true
   scheme: public
   directory: wysiwyg-images
   max_size: ''
   max_dimensions:
-    width: null
-    height: null
+    width: 0
+    height: 0

+ 1 - 1
config/sync/filter.format.wysiwyg.yml

@@ -48,7 +48,7 @@ filters:
     status: false
     weight: -43
     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_nofollow: false
   audio_links:

+ 2 - 0
config/sync/language/en/block.block.adminimal_theme_help.yml

@@ -0,0 +1,2 @@
+settings:
+  label: Help

+ 2 - 0
config/sync/language/en/block.block.basic_account_menu.yml

@@ -0,0 +1,2 @@
+settings:
+  label: 'User account menu'

+ 2 - 0
config/sync/language/en/block.block.basic_breadcrumbs.yml

@@ -0,0 +1,2 @@
+settings:
+  label: Breadcrumbs

+ 1 - 0
config/sync/language/en/linkit.linkit_profile.default.yml

@@ -0,0 +1 @@
+label: Default

+ 1 - 0
config/sync/language/en/system.action.change_a_node_to_next_workflow_state.yml

@@ -0,0 +1 @@
+label: 'Change a node to next Workflow state'

+ 1 - 0
config/sync/language/en/system.action.node_edit_action.yml

@@ -0,0 +1 @@
+label: 'Edit content'

+ 1 - 0
config/sync/language/en/system.action.taxonomy_term_edit_action.yml

@@ -0,0 +1 @@
+label: 'Edit taxonomy terms'

+ 1 - 0
config/sync/language/en/system.action.user_edit_action.yml

@@ -0,0 +1 @@
+label: 'Edit users'

+ 26 - 26
config/sync/language/en/views.view.workflow_entity_history.yml

@@ -1,26 +1,13 @@
-label: 'Workflow Entity history'
-description: 'Enable this View to configure the history tab.'
 display:
   default:
-    display_title: Master
     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:
+        from_sid:
+          separator: ', '
+          label: 'From state'
+        to_sid:
+          separator: ', '
+          label: 'To state'
         hid:
           label: 'Transition ID'
           separator: ', '
@@ -30,12 +17,6 @@ display:
         field_name:
           label: 'Field name'
           separator: ', '
-        from_sid:
-          label: 'From state'
-          separator: ', '
-        to_sid:
-          label: 'To state'
-          separator: ', '
         uid:
           label: 'User ID'
           separator: ', '
@@ -44,12 +25,31 @@ display:
           separator: ', '
         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:
         entity_id:
           exception:
             title: All
-      title: 'Workflow history'
+    display_title: Master
   workflow_history_tab:
     display_title: 'Workflow history tab'
     display_options:
       display_description: 'Replaces the transition list in the Workflow tab.'
+label: 'Workflow Entity history'
+description: 'Enable this View to configure the history tab.'

+ 3 - 3
config/sync/linkit.linkit_profile.default.yml

@@ -1,12 +1,12 @@
 uuid: 4a884f21-148c-4983-b9a0-9c13ad9a41b9
-langcode: en
+langcode: fr
 status: true
 dependencies:
   module:
     - node
 _core:
   default_config_hash: 0Jw_BFJCCtWk187tIYvME58VFpYwPaAdrc4eRtAyHH0
-label: Default
+label: Master
 id: default
 description: 'A default Linkit profile'
 matchers:
@@ -17,7 +17,7 @@ matchers:
       metadata: '[node:content-type:name] #[node:nid] | [node:created:medium] by [node:author]'
       bundles: {  }
       group_by_bundle: false
-      include_unpublished: false
       substitution_type: canonical
       limit: 100
+      include_unpublished: false
     weight: 0

+ 1 - 1
config/sync/system.action.node_edit_action.yml

@@ -1,5 +1,5 @@
 uuid: f205aad5-809d-45af-bd88-9ed0376767e9
-langcode: en
+langcode: fr
 status: true
 dependencies:
   module:

+ 1 - 1
config/sync/system.action.taxonomy_term_edit_action.yml

@@ -1,5 +1,5 @@
 uuid: bd31b941-546e-40ec-9fb2-d4406b0bf8d3
-langcode: en
+langcode: fr
 status: true
 dependencies:
   module:

+ 1 - 1
config/sync/system.action.user_edit_action.yml

@@ -1,5 +1,5 @@
 uuid: 1bb44a7a-18e2-42c6-a6d4-d44ad73040d7
-langcode: en
+langcode: fr
 status: true
 dependencies:
   module:

+ 2 - 0
config/sync/user.role.admin.yml

@@ -15,6 +15,8 @@ dependencies:
     - taxonomy.vocabulary.genres
     - taxonomy.vocabulary.langues
     - taxonomy.vocabulary.locuteurs
+    - workflow.workflow.corpus_documents
+    - workflow.workflow.generique
   module:
     - actions_permissions
     - content_translation

+ 2 - 1
config/sync/user.role.anonymous.yml

@@ -5,11 +5,12 @@ dependencies:
   config:
     - filter.format.wysiwyg
     - rest.resource.user_registration
+    - workflow.workflow.corpus_documents
+    - workflow.workflow.generique
   module:
     - devel
     - filter
     - rest
-    - synonyms
     - system
     - workflow
 _core:

+ 2 - 1
config/sync/user.role.authenticated.yml

@@ -5,12 +5,13 @@ dependencies:
   config:
     - filter.format.wysiwyg
     - rest.resource.user_registration
+    - workflow.workflow.corpus_documents
+    - workflow.workflow.generique
   module:
     - devel
     - edlp_studio
     - filter
     - rest
-    - synonyms
     - system
     - workflow
 _core:

+ 2 - 0
config/sync/user.role.collectionneur.yml

@@ -9,6 +9,8 @@ dependencies:
     - taxonomy.vocabulary.genres
     - taxonomy.vocabulary.langues
     - taxonomy.vocabulary.locuteurs
+    - workflow.workflow.corpus_documents
+    - workflow.workflow.generique
   module:
     - filter
     - node

+ 2 - 0
config/sync/user.role.invite.yml

@@ -2,6 +2,8 @@ uuid: 6da9406b-e985-4fbd-a6d1-9c134f04220e
 langcode: fr
 status: true
 dependencies:
+  config:
+    - workflow.workflow.generique
   module:
     - workflow
 id: invite

+ 3 - 0
web/themes/custom/edlptheme/edlptheme.info.yml

@@ -21,3 +21,6 @@ regions:
   footer_left: 'Footer Left'
   footer_center: 'Footer Center'
   footer_right: 'Footer Right'
+
+dependencies:
+     - classy:classy