Problem/Motivation
CKEditor 4 is marked as deprecated in Drupal 9.5 (https://www.drupal.org/project/drupal/issues/3304326) and will be removed in Drupal 10. We should provide a CKEditor 5-compatible version of the augmentor ckeditor plugin.
Proposed resolution
Add a CKEditor 5 plugin to the existing module (alongside the CKEditor 4 plugin) to simplify the migration path. The CKEditor 5 API is a ground-up rewrite, so it will require familiarity with that API.
Integration within Drupal should follow documentation provided below:
- Drupal's CKEditor 5 architecture: https://api.drupal.org/api/drupal/core!modules!ckeditor5!ckeditor5.api.p...
- Drupal's API for working with CKEditor 5: https://www.drupal.org/docs/drupal-apis/ckeditor-5-api/overview
- Updating the CKEditor plugin https://www.drupal.org/docs/core-modules-and-themes/core-modules/ckedito...
Issue fork augmentor-3332583
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
murrayw commentedComment #3
naveenvalechaAssigning that to myself will allow me to explore the CK5 API and an in-depth understanding of the CK4 integration.
Comment #4
eleonelHI Naveen, I'm already working on it and I have a work in progress module.
Comment #5
naveenvalechaThat's excellent news, Eleo!
Comment #6
bogdog400 commentedI just tried Augmentor on Drupal 10 which comes with CKEditor 5 out of the box. So it's not really possible to test anything without this. Thanks for working on it.
Comment #7
fishfree commented@bogdog400 But in Drupal latest 9.x version, Augmentor is still not compatible with CKEditor 5, which is enabled by default.
Comment #9
eleonelReady for review.
Comment #10
hyperlinkedIt appears that not only does Augmentor only support CKeditor 4. It's actually dependent upon CKeditor 4 being active on the pages on which there is an Augmentor edit form widget.
I tried these variations in a clean install:
The only variation that works is the last one. If CKeditor 4 is not loaded on a page that has an Augmentor widget, Augmentor will either hang or abort when the widget button is clicked and the following JavaScript error is thrown:
[Error] ReferenceError: Can't find variable: CKEDITOR
Comment #11
eleonelThanks @hyperlinked,
I created a separate issue for that, please check https://www.drupal.org/project/augmentor/issues/3358019
Comment #13
eleonel