ouidade 10 mesi fa
parent
commit
f6221293c6

+ 1 - 0
composer.json

@@ -18,6 +18,7 @@
         "composer/installers": "^1.9",
         "drupal-ckeditor-libraries-group/fakeobjects": "^4.20",
         "drupal/book_access_code": "^2.0",
+        "drupal/ckeditor_wiris": "^2.1",
         "drupal/config_pages": "^2.14",
         "drupal/core-composer-scaffold": "^9.5",
         "drupal/core-project-message": "^9.5",

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

@@ -21,6 +21,7 @@ module:
   bulkdelete: 0
   ckeditor: 0
   ckeditor5: 0
+  ckeditor_wiris: 0
   config: 0
   config_devel: 0
   config_filter: 0

+ 50 - 0
config/sync/editor.editor.tablecell.yml

@@ -0,0 +1,50 @@
+uuid: a5ebae06-aba5-4cdc-982a-cb3bbe89de9d
+langcode: en
+status: true
+dependencies:
+  config:
+    - filter.format.tablecell
+  module:
+    - ckeditor
+format: tablecell
+editor: ckeditor
+settings:
+  toolbar:
+    rows:
+      -
+        -
+          name: Formatting
+          items:
+            - Bold
+            - Italic
+        -
+          name: Links
+          items:
+            - DrupalLink
+            - DrupalUnlink
+        -
+          name: Lists
+          items:
+            - BulletedList
+            - NumberedList
+        -
+          name: Media
+          items:
+            - Blockquote
+            - DrupalImage
+        -
+          name: Tools
+          items:
+            - Source
+  plugins:
+    drupallink:
+      linkit_enabled: false
+      linkit_profile: ''
+image_upload:
+  status: false
+  scheme: public
+  directory: inline-images
+  max_size: ''
+  max_dimensions:
+    width: null
+    height: null

+ 51 - 2
config/sync/field.field.paragraph.tablefield.field_tablefield.yml

@@ -7,6 +7,12 @@ dependencies:
     - paragraphs.paragraphs_type.tablefield
   module:
     - tablefield
+    - tablefield_required
+third_party_settings:
+  tablefield_required:
+    required_rows: ''
+    required_cols: ''
+    multivalue_inherit: false
 id: paragraph.tablefield.field_tablefield
 field_name: field_tablefield
 entity_type: paragraph
@@ -15,14 +21,57 @@ label: tablefield
 description: ''
 required: false
 translatable: true
-default_value: {  }
+default_value:
+  -
+    rebuild:
+      cols: '5'
+      rows: '5'
+    value:
+      0:
+        weight: '0'
+        0: ''
+        1: ''
+        2: ''
+        3: ''
+        4: ''
+      1:
+        weight: '1'
+        0: ''
+        1: ''
+        2: ''
+        3: ''
+        4: ''
+      2:
+        weight: '2'
+        0: ''
+        1: ''
+        2: ''
+        3: ''
+        4: ''
+      3:
+        weight: '3'
+        0: ''
+        1: ''
+        2: ''
+        3: ''
+        4: ''
+      4:
+        weight: '4'
+        0: ''
+        1: ''
+        2: ''
+        3: ''
+        4: ''
+      caption: ''
+    format: null
+    caption: ''
 default_value_callback: ''
 settings:
   export: false
   restrict_rebuild: true
   restrict_import: true
   lock_values: false
-  cell_processing: 0
+  cell_processing: 1
   empty_rules:
     ignore_table_structure: false
     ignore_table_header: false

+ 44 - 0
config/sync/filter.format.tablecell.yml

@@ -0,0 +1,44 @@
+uuid: b3970c0c-c4af-4b60-87c5-e7fb1a327bf7
+langcode: en
+status: true
+dependencies:
+  module:
+    - footnotes
+    - url_to_video_filter
+name: tablecell
+format: tablecell
+weight: 0
+filters:
+  filter_html:
+    id: filter_html
+    provider: filter
+    status: true
+    weight: -10
+    settings:
+      allowed_html: '<em><strong><br>'
+      filter_html_help: true
+      filter_html_nofollow: false
+  filter_autop:
+    id: filter_autop
+    provider: filter
+    status: true
+    weight: 0
+    settings: {  }
+  filter_footnotes:
+    id: filter_footnotes
+    provider: footnotes
+    status: false
+    weight: 0
+    settings:
+      footnotes_collapse: '0'
+      footnotes_html: '0'
+  filter_url_to_video:
+    id: filter_url_to_video
+    provider: url_to_video_filter
+    status: false
+    weight: 0
+    settings:
+      youtube: '1'
+      youtube_webp_preview: '0'
+      vimeo: '1'
+      autoload: '0'

+ 1 - 1
config/sync/language.types.yml

@@ -10,7 +10,7 @@ configurable:
 negotiation:
   language_content:
     enabled:
-      language-interface: 9
+      language-interface: 0
     method_weights:
       language-content-entity: -9
       language-url: -8

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

@@ -3,6 +3,7 @@ langcode: fr
 status: true
 dependencies:
   config:
+    - filter.format.tablecell
     - filter.format.wysiwyg
     - node.type.static
   module:
@@ -97,6 +98,7 @@ permissions:
   - 'translate page node'
   - 'translate static node'
   - 'update content translations'
+  - 'use text format tablecell'
   - 'use text format wysiwyg'
   - 'view autre_son revisions'
   - 'view enregistrement revisions'

+ 3 - 0
config/sync/user.role.editor.yml

@@ -3,12 +3,14 @@ langcode: fr
 status: true
 dependencies:
   config:
+    - filter.format.tablecell
     - node.type.book
     - node.type.static
   module:
     - block_content
     - book
     - content_translation
+    - filter
     - node
     - paragraphs
     - system
@@ -49,6 +51,7 @@ permissions:
   - 'translate static node'
   - 'translate user'
   - 'update content translations'
+  - 'use text format tablecell'
   - 'view book revisions'
   - 'view own unpublished content'
   - 'view static revisions'

+ 3 - 0
config/sync/user.role.translator.yml

@@ -3,11 +3,13 @@ langcode: fr
 status: true
 dependencies:
   config:
+    - filter.format.tablecell
     - node.type.book
     - node.type.static
   module:
     - block_content
     - content_translation
+    - filter
     - node
     - paragraphs
     - system
@@ -34,5 +36,6 @@ permissions:
   - 'translate static node'
   - 'translate user'
   - 'update content translations'
+  - 'use text format tablecell'
   - 'view own unpublished content'
   - 'view the administration theme'