Problem/Motivation

#3400791: Update CKEditor 5 to 40.1.0 already landed in 10.2.x 👍

https://github.com/ckeditor/ckeditor5/releases/tag/v40.2.0 will appear NEXT WEEK (the week of 10.2.0)

Nightly changelog that will not change much anymore: https://github.com/ckeditor/ckeditor5/issues/14724

Changelog: https://github.com/ckeditor/ckeditor5/releases/tag/v40.2.0

Fixes include:

Features include:

  • link: Links can now be applied by pasting a URL on selected text. Closes #5656. (commit)

Proposed resolution

  1. Update core/package.json
  2. yarn --cwd core install && yarn --cwd core build && yarn --cwd core build:ckeditor5-types

Remaining tasks

TBD

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

CKEditor 5 has been updated to 40.2.0.

Issue fork drupal-3406732

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

Wim Leers created an issue. See original summary.

wim leers’s picture

Title: Update CKEditor 5 to 40.2.0 » [week of Dec 11] Update CKEditor 5 to 40.2.0
Version: 10.2.x-dev » 11.x-dev
Issue summary: View changes
Status: Active » Postponed
Issue tags: -JavaScript +JavaScript
Related issues: +#3376167: [upstream] [GHS] Add style to anchor leads to unusable behavior, +#3385566: [GHS] Test coverage for using CKEditor 5's "Source Editing" with a <template> tag

This will fix

… but it currently results in ImageUrlTest failing, due to a BC break. See #3379104-29: Add a "CKEditor 5 nightly" GitLab CI job. The CKEditor 5 team is aware and is investigating. (It likely is a trivial fix: a missing dependency declaration on our side causing incorrect plugin loading order, or just a missing configuration entry.)

wim leers’s picture

Issue summary: View changes
Issue tags: -JavaScript +JavaScript
longwave’s picture

Status: Postponed » Active

This can be worked on now and hopefully we can land it in 10.2.0: https://github.com/ckeditor/ckeditor5/releases/tag/v40.2.0

longwave’s picture

Title: [week of Dec 11] Update CKEditor 5 to 40.2.0 » Update CKEditor 5 to 40.2.0
Status: Active » Needs review
wim leers’s picture

Thanks, @longwave! This should result in the same test failures I previously reported in #2. @lauriii told me he'd take a look 😊🥳 (he knows our DrupalImage plugin best).

wim leers’s picture

Issue summary: View changes

Also note that now there is an upgrade guide available, which was not available yet last week: https://ckeditor.com/docs/ckeditor5/latest/updating/guides/update-to-40.... — that might help @lauriii.

longwave’s picture

Status: Needs review » Needs work

As expected, needs work for fails in ImageUrlTest.

lauriii made their first commit to this issue’s fork.

lauriii’s picture

Status: Needs work » Needs review

Tests are passing. I think we could potentially get rid of the DrupalInsertImage since it isn't doing anything at the moment. This could be disruptive because we need to update existing config, but there could be also code referring to the toolbar button, e.g. other plugins could depend on it with a condition. I don't think we should block the update with that.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

The changes look solid. Thank you so much, @lauriii! 🙏

Two observations:

  1. It seems that in this case they could and should have done a bit more work to remove the need for their downstream integrators to have to change code. Hopefully this will be better in the next release.
  2. It'd be good if we can document the rationale for keeping DrupalInsertImage around as an empty shell right in the code that is being modified in drupalinsertimage.js. (I was going to say: let's mark it for removal in Drupal 11, but that will then still be a contrib ecosystem disruption then that we can avoid. The cost of keeping this around is negligible. And … who knows what other upstream breakages will happen in the future, and this would give us one more code execution point to insert work-arounds? 🙈)
wim leers’s picture

Perfect! 😊🙏

  • catch committed 324fd148 on 10.2.x
    Issue #3406732 by longwave, lauriii, Wim Leers: Update CKEditor 5 to 40....

  • catch committed ffc56d52 on 11.x
    Issue #3406732 by longwave, lauriii, Wim Leers: Update CKEditor 5 to 40....
catch’s picture

Version: 11.x-dev » 10.2.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x and 10.2.x, thanks! Nice to get this one in. Do we need a follow-up to discuss DrupalInsertImage more?

I've updated the release notes for the version change.

wim leers’s picture

Do we need a follow-up to discuss DrupalInsertImage more?

I don't think so. But I defer to @lauriii.

lauriii’s picture

I don't think we need a follow-up. We could probably remove it but at the same time it could be helpful to have the plugin and the custom insert button already available in case that CKEditor team decides to make more BC breaking changes to their image insert button.

Status: Fixed » Closed (fixed)

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