Browse Source

images in static CT wysiwyg #2448

bach 11 months ago
parent
commit
d45668f042

+ 11 - 1
config/sync/editor.editor.wysiwyg.yml

@@ -16,6 +16,7 @@ settings:
       - heading
       - bold
       - italic
+      - drupalInsertImage
   plugins:
     ckeditor5_heading:
       enabled_headings:
@@ -24,4 +25,13 @@ settings:
         - heading4
         - heading5
         - heading6
-image_upload: {  }
+    ckeditor5_imageResize:
+      allow_resize: true
+image_upload:
+  status: true
+  scheme: public
+  directory: inline-images
+  max_size: ''
+  max_dimensions:
+    width: 1080
+    height: 1080

+ 3 - 1
config/sync/field.field.node.static.body.yml

@@ -4,6 +4,7 @@ status: true
 dependencies:
   config:
     - field.storage.node.body
+    - filter.format.wysiwyg
     - node.type.static
   module:
     - text
@@ -22,5 +23,6 @@ default_value_callback: ''
 settings:
   display_summary: true
   required_summary: false
-  allowed_formats: {  }
+  allowed_formats:
+    - wysiwyg
 field_type: text_with_summary

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

@@ -53,13 +53,13 @@ filters:
   filter_align:
     id: filter_align
     provider: filter
-    status: false
+    status: true
     weight: -41
     settings: {  }
   filter_caption:
     id: filter_caption
     provider: filter
-    status: false
+    status: true
     weight: -40
     settings: {  }
   filter_html_escape: