Problem/Motivation

The CKEditor 35 update in #3301495: Update CKEditor 5 to 35.0.1 causes the test added for #3274937: Get CKEditor 5 to work in (modal) dialogs to start failing. In order to issue security hardening releases for the CKEditor 35.0.1 security advisory, we temporarily marked the test skipped in the 10.1.x and 10.0.x patches.

Proposed resolution

Un-skip the test and fix the regression.

Remaining tasks

TBD

User interface changes

Modal dialogs start working (again).

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xjm created an issue. See original summary.

xjm’s picture

Patch to unskip the test (won't apply until #3301495: Update CKEditor 5 to 35.0.1 is committed).

nod_’s picture

Issue tags: +JavaScript
xjm’s picture

Status: Active » Needs review
Issue tags: -JavaScript
FileSize
933 bytes

Updated patch that also removes the @todo comment.

xjm’s picture

Issue tags: +JavaScript

x-post

xjm’s picture

Status: Needs review » Needs work

NW to fix the bug, obvs. Test failure demonstrates what needs to be addressed.

nod_ credited Taran2L.

nod_’s picture

Status: Needs work » Needs review
FileSize
2.94 KB

boum

giving credit to Taran2L for the discussion in slack about _allowInteraction.

nod_’s picture

Patch for 9.5 that combines the patch from #3274937: Get CKEditor 5 to work in (modal) dialogs and the fix here.

Taran2L’s picture

hi @nod_, thanks for implementing this.

One question though, CKE4 is affected by the same issue. My idea was to fix it in the jQueryUI dialog like globally for CKE4/CKE5, but this is just an update for CKE5 leaving an extra JS file + library alter. Then, CKE4 will require (almost) the same thing, except the CSS class is different (however I see you have picked a very generic ck one, which might work with CKE4 too).

Is that how yo use this going forward: CKE4 and CKE5 implementing virtually the same thing separately, and other affected models do this as well?

Also, I'm curious whether multiple extensions do work fine simultaneously. Yes there are.

One thing though, code extending dialog must run before any dialog is being initialized.

nod_’s picture

This is about fixing the regression, so minimal code changes to address the problem and unblock things.

I'd like to talk about combining CKE5 and 4 fix in a separate issue so that we have the space to discuss the various implications.

lauriii’s picture

I think #9 should be posted on #3274937: Get CKEditor 5 to work in (modal) dialogs as the backport. On this issue, I think we should only commit #8.

Taran2L’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me

  • lauriii committed 4efef25 on 10.1.x
    Issue #3301631 by nod_, Taran2L, xjm: Regression with CKEditor 35.0.1...

  • lauriii committed ae2382f on 10.0.x
    Issue #3301631 by nod_, Taran2L, xjm: Regression with CKEditor 35.0.1...
lauriii’s picture

Version: 9.5.x-dev » 10.0.x-dev
Status: Reviewed & tested by the community » Fixed

Committed 4efef25 and pushed to 10.1.x and cherry-picked to 10.0.x. Thanks!

Status: Fixed » Closed (fixed)

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