Skip to content

Commit

Permalink
COGS-30 Core 9 -> 10 Update text formats and remove CKEditor 4
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Jan 16, 2024
1 parent ab95111 commit bf0a731
Show file tree
Hide file tree
Showing 9 changed files with 207 additions and 311 deletions.
85 changes: 49 additions & 36 deletions configuration/editor.editor.basic_html.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,61 @@
uuid: 953586a3-ec4f-43a3-bf73-740b09e563d1
uuid: 4eff0632-0c5a-4b7b-8d5e-4f8f9d2bd001
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
- '|'
- sourceEditing
- '|'
- code
plugins:
ckeditor5_heading:
enabled_headings:
- heading2
- heading3
- heading4
- heading5
- heading6
ckeditor5_imageResize:
allow_resize: true
ckeditor5_list:
reversed: false
startIndex: true
ckeditor5_sourceEditing:
allowed_tags:
- '<cite>'
- '<dl>'
- '<dt>'
- '<dd>'
- '<span>'
- '<a hreflang>'
- '<blockquote cite>'
- '<ul type>'
- '<ol type>'
- '<h2 id>'
- '<h3 id>'
- '<h4 id>'
- '<h5 id>'
- '<h6 id>'
image_upload:
status: true
scheme: public
Expand Down
128 changes: 84 additions & 44 deletions configuration/editor.editor.full_html.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,96 @@
uuid: 56fd82e4-3cc5-40a3-a333-df3548a9dc4b
uuid: 3af37632-10b3-4918-beaf-a0bbaa077532
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_codeBlock:
languages:
-
label: 'Plain text'
language: plaintext
-
label: C
language: c
-
label: 'C#'
language: cs
-
label: C++
language: cpp
-
label: CSS
language: css
-
label: Diff
language: diff
-
label: HTML
language: html
-
label: Java
language: java
-
label: JavaScript
language: javascript
-
label: PHP
language: php
-
label: Python
language: python
-
label: Ruby
language: ruby
-
label: TypeScript
language: typescript
-
label: XML
language: xml
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
2 changes: 1 addition & 1 deletion configuration/filter.format.basic_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ filters:
status: true
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: '<br> <p> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <cite> <dl> <dt> <dd> <span> <a hreflang href> <blockquote cite> <ul type> <ol type start> <strong> <em> <code> <li> <img src alt height width data-entity-uuid data-entity-type data-caption data-align>'
filter_html_help: false
filter_html_nofollow: false
filter_align:
Expand Down
9 changes: 9 additions & 0 deletions configuration/filter.format.full_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ filters:
status: true
weight: 11
settings: { }
filter_html:
id: filter_html
provider: filter
status: false
weight: -10
settings:
allowed_html: ''
filter_html_help: true
filter_html_nofollow: false
Loading

0 comments on commit bf0a731

Please sign in to comment.