Skip to content

Commit

Permalink
Update dependency and configs to CKeditor 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-Orlov authored and andypost committed Jan 12, 2024
1 parent 1a62e5a commit fea9bb2
Show file tree
Hide file tree
Showing 7 changed files with 271 additions and 190 deletions.
119 changes: 69 additions & 50 deletions config/install/editor.editor.basic_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,80 @@ dependencies:
config:
- filter.format.basic_html
module:
- ckeditor
- ckeditor5
format: basic_html
editor: ckeditor
editor: ckeditor5
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Format
- Bold
- Italic
- Underline
- Blockquote
- Strike
- Superscript
- Subscript
- RemoveFormat
- JustifyLeft
- JustifyCenter
- JustifyRight
- JustifyBlock
- Language
- HorizontalRule
- Table
- DrupalMediaLibrary
-
name: Links
items:
- DrupalLink
- DrupalUnlink
-
name: Lists
items:
- BulletedList
- NumberedList
- Outdent
- Indent
-
name: Tools
items:
- Undo
- Redo
- Cut
- Copy
- PasteText
- Paste
- PasteFromWord
- Maximize
items:
- heading
- bold
- italic
- underline
- blockQuote
- strikethrough
- superscript
- subscript
- removeFormat
- alignment
- textPartLanguage
- horizontalLine
- insertTable
- drupalMedia
- '|'
- link
- '|'
- bulletedList
- numberedList
- outdent
- indent
- '|'
- undo
- redo
- '|'
- code
- sourceEditing
plugins:
stylescombo:
styles: ''
language:
ckeditor5_alignment:
enabled_alignments:
- center
- justify
- left
- right
ckeditor5_heading:
enabled_headings:
- heading2
- heading3
- heading4
- heading5
- heading6
ckeditor5_language:
language_list: un
ckeditor5_list:
properties:
reversed: false
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags:
- '<cite>'
- '<dl>'
- '<dt>'
- '<dd>'
- '<span>'
- '<img src alt height width data-entity-type data-entity-uuid data-align data-caption>'
- '<h2 id>'
- '<h3 id>'
- '<h4 id>'
- '<h5 id>'
- '<h6 id>'
- '<a hreflang>'
- '<blockquote cite>'
- '<ul type>'
- '<ol type>'
- '<drupal-media title>'
media_media:
allow_view_mode_override: false
image_upload:
status: false
scheme: public
Expand Down
146 changes: 95 additions & 51 deletions config/install/editor.editor.full_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,65 +4,109 @@ dependencies:
config:
- filter.format.full_html
module:
- ckeditor
- ckeditor5
format: full_html
editor: ckeditor
editor: ckeditor5
settings:
toolbar:
rows:
-
items:
- heading
- codeBlock
- bold
- italic
- underline
- blockQuote
- strikethrough
- superscript
- subscript
- removeFormat
- alignment
- textPartLanguage
- horizontalLine
- insertTable
- specialCharacters
- showBlocks
- drupalMedia
- '|'
- link
- '|'
- bulletedList
- numberedList
- outdent
- indent
- '|'
- undo
- redo
- sourceEditing
plugins:
ckeditor5_alignment:
enabled_alignments:
- center
- justify
- left
- right
ckeditor5_codeBlock:
languages:
-
name: Formatting
items:
- Format
- Bold
- Italic
- Underline
- Blockquote
- Strike
- Superscript
- Subscript
- '-'
- RemoveFormat
- JustifyLeft
- JustifyCenter
- JustifyRight
- JustifyBlock
- Language
- HorizontalRule
- Table
- SpecialChar
- ShowBlocks
- DrupalMediaLibrary
label: 'Plain text'
language: plaintext
-
name: Linking
items:
- DrupalLink
- DrupalUnlink
label: C
language: c
-
name: Lists
items:
- BulletedList
- NumberedList
- Outdent
- Indent
label: 'C#'
language: cs
-
name: Tools
items:
- Undo
- Redo
- Cut
- Copy
- Paste
- PasteText
- PasteFromWord
- Maximize
- Source
plugins:
stylescombo:
styles: ''
language:
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_language:
language_list: un
ckeditor5_list:
properties:
reversed: true
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags: { }
media_media:
allow_view_mode_override: false
image_upload:
status: false
scheme: public
Expand Down
Loading

0 comments on commit fea9bb2

Please sign in to comment.