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.

Command icon 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

droath created an issue. See original summary.

droath’s picture

Status: Active » Needs review
vlyalko’s picture

Upgraded to 10.3 and experiencing the same issue.

vlyalko’s picture

Thanks droath! While waiting for the merge request to be merged, I have created a patch off of your MR.

ammar_ar’s picture

StatusFileSize
new277.57 KB

Rerolled patch to work with 1.0.0-beta1

damienmckenna’s picture

Thank 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.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Add to rebuild the js but this worked like a charm also addresses #3450674: Ckeditor Media Resize breaks all ckeditor fields

damienmckenna’s picture

StatusFileSize
new896.22 KB

This adds the package-lock.json, and recompiles the plugin.

  • damienmckenna committed 3a232448 on 1.0.x
    Issue #3458385 by damienmckenna, droath, vlyalko, ammar_jeetawi,...
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks everyone.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.