Problem/Motivation
After upgrading to Drupal core 10.3, which updates CKEditor to version 4.13.1, I now see this error being thrown: TypeError: t.Model is not a constructor in the console when loading up a CKEditor instance.
Official CKEditor documentation that shows the API was changed:
https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-41....
Proposed resolution
Update the CKEditor5 plugin dependencies and correct any incompatible code.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | ckeditor_media_resize-n3458385-9.patch | 896.22 KB | damienmckenna |
| #7 | ckeditor_media_resize-n3458385-7.patch | 262.2 KB | damienmckenna |
| #7 | ckeditor_media_resize-n3458385-7.interdiff.txt | 765 bytes | damienmckenna |
| #6 | ckeditor_media_resize--2024-07-23-6.patch | 277.57 KB | ammar_ar |
| #5 | ckeditor5_media_resize_update_ck5_plugin-15671444-4.patch | 261.5 KB | vlyalko |
Issue fork ckeditor_media_resize-3458385
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 #3
droath commentedComment #4
vlyalko commentedUpgraded to 10.3 and experiencing the same issue.
Comment #5
vlyalko commentedThanks droath! While waiting for the merge request to be merged, I have created a patch off of your MR.
Comment #6
ammar_ar commentedRerolled patch to work with 1.0.0-beta1
Comment #7
damienmckennaThank you for working on this.
I found some documentation around this API change: https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-41....
I think we should add this to beta2 and indicate it requires core 10.3, per this updated patch.
Comment #8
smustgrave commentedAdd to rebuild the js but this worked like a charm also addresses #3450674: Ckeditor Media Resize breaks all ckeditor fields
Comment #9
damienmckennaThis adds the package-lock.json, and recompiles the plugin.
Comment #11
damienmckennaCommitted. Thanks everyone.