Migrate to CKEditor 5 for Drupal 9.4+ / Drupal 10

Created on 17 November 2022, over 1 year ago
Updated 10 July 2023, 11 months ago

Problem/Motivation

CKEditor 5 was added to core in 9.3. This is going to be the new WYSIWYG editor in D10 and CKEditor 4 is being removed. Because CKEditor 5 was a ground-up rewrite all plugins must also be rewritten.

Proposed resolution

Create a new CKEditor5 plugin that will achieve the same functionality as the current module does with CKEditor 4.

Tasks

  • Update frontend with addItems
  • Create CK4 to % migration class
  • Add tests
πŸ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States carsoncho

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States carsoncho
  • πŸ‡¦πŸ‡·Argentina natiar Buenos Aires

    I have Drupal 10 installed. When migrating it from one domain to another, the CKeditor stopped working. How can I repair it?
    Thnks a lot!

  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    @natiar do you have any javascript or other errors?

  • @vladimiraus opened merge request.
  • Assigned to VladimirAus
  • Status changed to Needs work about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia
  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia
  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia
  • πŸ‡¨πŸ‡¦Canada jodavidson

    Giving this a test using the plain diff as a patch. In Drupal 9.5.9 with CKeditor5 enabled the Special Chars does not appear in the plugins area of the Text Format configuration as it does with CKeditor4.

    I may be missing something in the implementation, and there may not yet be enough mods for it to work, but I thought you'd appreciate the feedback.

  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    @jodavidson yep, still work in progress 😜

  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    Just researching the more accurate way to upgrade it as special characters are now included in the core so only modification part is required:

    1. Create JS file with behaviour, get all instances of CKEditor and loop through them by applying newly defined special characters and insert it via ckeditor_specialchars_library_info_alter().
    2. OR create CKEditor JS plugin as specified in CK documentation and then insert it to existing specialCharacters plugin via ckeditor_specialchars_ckeditor5_plugin_info_alter(). Another issue with the second solution is that current webpack config gives cannot parse CSS error.
Production build 0.69.0 2024