- Issue created by @joseph.olstad
- Status changed to Needs work
over 1 year ago 9:02pm 25 May 2023 - πΊπΈUnited States wells Seattle, WA
Hm, in theory this should be possible, I think? Back when I got the 3.0.x version started things were still a bit fluid w.r.t CKE5 API in Drupal and I think at the time it was not possible to do both (or at least I wasn't able to find a good solution for it).
I'm definitely open to this but I don't have the use case myself or extra time to dig in on it. Happy to support anyone who wants to work on this however I can, or I will take a look at it some time in the future.
- π¨π¦Canada joseph.olstad
I'm wondering, perhaps the easiest way would be to fork the 2.x version of this project into a ckeditor4_codemirror project and install both this module for ck5 and the forked one for ck4
? This would be the easiest thing to try first. - πΊπΈUnited States wells Seattle, WA
I'm not sure if that's necessary though. And it will likely introduce complications w.r.t. configuration management for someone wanting to migrate an instance between the two modules and/or ultimately upgrade from CKE4 to CKE5 (not sure if we can properly handle config from a different module for the update path).
- π¨π¦Canada joseph.olstad
I did the proof of concept and forked the 8.x-2.x branch into a new project and it is working however you have to probably massage the library path.
https://www.drupal.org/project/ckeditor4_codemirror/releases/1.0.0-alpha1 β
- πΊπΈUnited States wells Seattle, WA
@joseph.olstad what happens you upgrade a text format from CKE4 to CKE5? Do the configuration settings get migrated correctly?
- π¨π¦Canada joseph.olstad
The idea is that the ckeditor4 text formats get upgraded to ckeditor5 when using the ckeditor_codemirror 3.x module , the update hooks are not interfered. New text formats can be added for ckeditor4 compatibility when using ckeditor4_codemirror.
- πΊπΈUnited States wells Seattle, WA
@joseph.olstad OK that makes sense -- do we have anything else to do here?
- Status changed to Fixed
over 1 year ago 2:42pm 14 June 2023 - π¨π¦Canada joseph.olstad
This is solved by the forked module ckeditor4_codemirror.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 1:29pm 11 July 2023 - π¨π¦Canada joseph.olstad
Hmm, maybe not fixed yet.
I noticed an issue in ckeditor5 , codemirror library was crashing js when both ckeditor4_codemirror and ckeditor_codemirror installed and trying to set up both ck4 and ck5
ck4 works with ckeditor4_codemirror , I can install ckeditor_codemirror for ck5 but the js is crashing, there's a conflict somewhere.
I've created a ticket in ckeditor4_codemirror, hopefully can get some assistance on this.
- π¨π¦Canada joseph.olstad
actually I updated the project page instructions, it's working