Browse Source

upgraded to ckeditor5

bach 3 days ago
parent
commit
302e4fdc15

+ 1 - 0
config/sync/config_enforce.registry.computed_token_field.yml

@@ -1,3 +1,4 @@
+langcode: fr
 enforced_configs:
   'config_enforce:registry:computed_token_field':
     config_directory: config/install

+ 1 - 1
config/sync/core.extension.yml

@@ -17,7 +17,7 @@ module:
   block_class: 0
   block_content: 0
   breakpoint: 0
-  ckeditor: 0
+  ckeditor5: 0
   computed_field: 0
   computed_token_field: 0
   config: 0

+ 37 - 43
config/sync/editor.editor.webform_default.yml

@@ -1,53 +1,47 @@
-uuid: 9a8385ea-bc82-4f68-a84e-dd623bf7c099
+uuid: 63cd7f9f-3e2c-427b-87fb-4572c2e1ddf5
 langcode: en
 status: true
 dependencies:
   config:
     - filter.format.webform_default
   module:
-    - ckeditor
+    - ckeditor5
 format: webform_default
-editor: ckeditor
+editor: ckeditor5
 settings:
   toolbar:
-    rows:
-      -
-        -
-          name: Formatting
-          items:
-            - Format
-            - Bold
-            - Italic
-            - Superscript
-            - Subscript
-        -
-          name: Media
-          items:
-            - SpecialChar
-            - ImceImage
-        -
-          name: Linking
-          items:
-            - DrupalLink
-            - DrupalUnlink
-        -
-          name: Lists
-          items:
-            - NumberedList
-            - BulletedList
-        -
-          name: Indentation
-          items:
-            - Outdent
-            - Indent
-        -
-          name: 'Block Formatting'
-          items:
-            - Blockquote
-        -
-          name: Tools
-          items:
-            - Source
-            - Maximize
-  plugins: {  }
+    items:
+      - heading
+      - '|'
+      - bold
+      - italic
+      - subscript
+      - superscript
+      - '|'
+      - specialCharacters
+      - '|'
+      - numberedList
+      - bulletedList
+      - '|'
+      - link
+      - '|'
+      - indent
+      - outdent
+      - '|'
+      - blockQuote
+      - '|'
+      - sourceEditing
+  plugins:
+    ckeditor5_heading:
+      enabled_headings:
+        - heading2
+        - heading3
+        - heading4
+        - heading5
+        - heading6
+    ckeditor5_list:
+      reversed: true
+      startIndex: true
+    ckeditor5_sourceEditing:
+      allowed_tags: {  }
 image_upload: {  }

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

@@ -1,64 +1,51 @@
-uuid: 0b448044-22d4-49e6-9d45-d849b3b4d154
+uuid: cb09e5e1-dbca-45f6-a4be-c2e2debac9a9
 langcode: fr
 status: true
 dependencies:
   config:
     - filter.format.wysiwyg
   module:
-    - ckeditor
-_core:
-  default_config_hash: 45tCDsVx8RKDcrtyfVeP88jcBXzIxLtadjP2kF_DIjs
+    - 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: default
-    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.webform_default.yml

@@ -1,5 +1,5 @@
 uuid: ac1217b3-4157-439e-9b6d-872de892e226
-langcode: en
+langcode: fr
 status: true
 dependencies:
   enforced:

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

@@ -4,6 +4,7 @@ status: true
 dependencies:
   module:
     - editor
+    - pathologic
 _core:
   default_config_hash: w3wAkgsV6hn7P_cXCSnV-_1B_HOVJ7qwjv2DZID3B7g
 name: wysiwyg
@@ -47,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
   filter_align:
@@ -68,3 +69,14 @@ filters:
     status: false
     weight: -42
     settings: {  }
+  filter_pathologic:
+    id: filter_pathologic
+    provider: pathologic
+    status: false
+    weight: 50
+    settings:
+      settings_source: global
+      local_settings:
+        protocol_style: full
+        local_paths: ''
+        keep_language_prefix: true

+ 1 - 1
web/profiles/d8-starterkit-profile

@@ -1 +1 @@
-Subproject commit 0dc10a53b4088191cf5a62e912b70b74f804e3a6
+Subproject commit 3fba4edaabf728dc45163d5f008c7ed6b9db4988