Skip to content

Commit

Permalink
Merge pull request #615 from UN-OCHA/OPS-9268-ckeditor5
Browse files Browse the repository at this point in the history
chore: update ckeditor version and config
  • Loading branch information
lazysoundsystem authored Aug 23, 2023
2 parents 8bb3a97 + c1251f0 commit 121940e
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 84 deletions.
1 change: 1 addition & 0 deletions config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module:
block: 0
breakpoint: 0
ckeditor: 0
ckeditor5: 0
components: 0
config: 0
config_split: 0
Expand Down
70 changes: 34 additions & 36 deletions config/editor.editor.basic_html.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,46 @@
uuid: d6b8ab3d-6e1a-4df4-b847-1cb71e795f59
uuid: 100ccb48-0a47-4153-932d-ad3de71d9f16
langcode: en
status: true
dependencies:
config:
- filter.format.basic_html
module:
- ckeditor
_core:
default_config_hash: AqlPmO16LvJI4D0Ih6u4GFQIzqr5OnLgAUSjcUGWk2g
- ckeditor5
format: basic_html
editor: ckeditor
editor: ckeditor5
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Bold
- Italic
-
name: Linking
items:
- DrupalLink
- DrupalUnlink
-
name: Lists
items:
- BulletedList
- NumberedList
-
name: Media
items:
- Blockquote
- DrupalImage
-
name: 'Block Formatting'
items:
- Format
-
name: Tools
items:
- Source
plugins: { }
items:
- bold
- italic
- '|'
- link
- '|'
- bulletedList
- numberedList
- '|'
- blockQuote
- drupalInsertImage
- '|'
- heading
- codeBlock
- '|'
- sourceEditing
plugins:
ckeditor5_heading:
enabled_headings:
- heading2
- heading3
- heading4
- heading5
- heading6
ckeditor5_imageResize:
allow_resize: true
ckeditor5_list:
reversed: true
startIndex: true
ckeditor5_sourceEditing:
allowed_tags: { }
image_upload:
status: true
scheme: public
Expand Down
88 changes: 42 additions & 46 deletions config/editor.editor.full_html.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,57 @@
uuid: ca74fe70-f746-43cf-8cce-7487ba2e01ce
uuid: fb6a01df-c310-47ef-af98-1bfde4e02475
langcode: en
status: true
dependencies:
config:
- filter.format.full_html
module:
- ckeditor
_core:
default_config_hash: 967ijj7p6i7rwrYl7r08WQFeCY_c23YAh0h8u-w_CXM
- ckeditor5
format: full_html
editor: ckeditor
editor: ckeditor5
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Bold
- Italic
- Strike
- Superscript
- Subscript
- '-'
- RemoveFormat
-
name: Linking
items:
- DrupalLink
- DrupalUnlink
-
name: Lists
items:
- BulletedList
- NumberedList
-
name: Media
items:
- Blockquote
- DrupalImage
- Table
- HorizontalRule
-
name: 'Block Formatting'
items:
- Format
-
name: Tools
items:
- ShowBlocks
- Source
plugins: { }
items:
- bold
- italic
- strikethrough
- superscript
- subscript
- removeFormat
- '|'
- link
- '|'
- bulletedList
- numberedList
- '|'
- blockQuote
- drupalInsertImage
- insertTable
- horizontalLine
- '|'
- heading
- codeBlock
- '|'
- sourceEditing
plugins:
ckeditor5_heading:
enabled_headings:
- heading2
- heading3
- heading4
- heading5
- heading6
ckeditor5_imageResize:
allow_resize: true
ckeditor5_list:
reversed: true
startIndex: true
ckeditor5_sourceEditing:
allowed_tags: { }
image_upload:
status: true
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null
width: 0
height: 0
2 changes: 1 addition & 1 deletion config/filter.format.basic_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ filters:
status: false
weight: -10
settings:
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption>'
allowed_html: ''
filter_html_help: false
filter_html_nofollow: false
filter_align:
Expand Down
2 changes: 1 addition & 1 deletion config/filter.format.full_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ filters:
status: false
weight: -10
settings:
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <s> <sup> <sub> <img src alt data-entity-type data-entity-uuid data-align data-caption> <table> <caption> <tbody> <thead> <tfoot> <th> <td> <tr> <hr> <p> <h1> <pre>'
allowed_html: ''
filter_html_help: true
filter_html_nofollow: false

0 comments on commit 121940e

Please sign in to comment.