Problem/Motivation

In #3252214: Move tests for integrations between QuickEdit and CKEditor5 into QuickEdit so that it can more easily be moved into contrib we move CKEditor5IntegrationTest into the namespace/module of Quick Edit itself.

However we did not move the JavaScript bit that makes \Drupal\Tests\quickedit\FunctionalJavascript\CKEditor5IntegrationTest::testDiscard() pass.

This is the bit that we're talking about: https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/modules/cke....

To make the deprecation and removal of the Quick Edit module from Core possible, we need to move that bit into the namespace/module of Quick Edit itself as well in a way that it still passes \Drupal\Tests\quickedit\FunctionalJavascript\CKEditor5IntegrationTest::testDiscard().

Since this blocks #3227033: Remove Quick Edit from core, which is Major, also marking this issue as Major.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#3 core-3292780-3-9.5.x.patch7.1 KBnod_
#3 core-3292780-3.patch6.95 KBnod_

Comments

Spokje created an issue. See original summary.

nod_’s picture

Issue tags: +JavaScript
nod_’s picture

Status: Active » Needs review
StatusFileSize
new6.95 KB
new7.1 KB

didn't try to be too fancy, let see what the testbot says.

spokje’s picture

Status: Needs review » Reviewed & tested by the community

didn't try to be too fancy, let see what the testbot says.

Fancy, schmanzy!

- JS code concerning the reverting in Quick Edit is moved to the module itself.
- \Drupal\Tests\quickedit\FunctionalJavascript\CKEditor5IntegrationTest::testDiscard() still passes.
- Testbot likes it, so I like it.

RTBC.

nod_’s picture

haha, well I'm happy too then.

  • catch committed 49fdcb8 on 9.5.x
    Issue #3292780 by nod_, Spokje: Move Quick Edit related Javascript from...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 10.1.x, cherry-picked to 10.0.x and the respective patch to 9.5.x, thanks!

  • catch committed 2a229b8 on 10.0.x
    Issue #3292780 by nod_, Spokje: Move Quick Edit related Javascript from...
  • catch committed 6531914 on 10.1.x
    Issue #3292780 by nod_, Spokje: Move Quick Edit related Javascript from...
spokje’s picture

Thanks @nod_ for being the JS-Big-Brain needed here.
Thanks @catch for the quick commit, let's hope this was actually the last real code blocking issue for QE-Exit-Stage-Left...

nod_’s picture

Wow I think that was my fastest patch to commit yet :)

spokje’s picture

When it comes to QE, nobody (especially catch) takes any chances on other commits getting in the way.
The deprecation/removal of this "beast" has been hard enough as it is.

Sisyphus nods head

xjm’s picture

wim leers’s picture

Yay! This also made the CKEditor 5 module simpler 🤓

Status: Fixed » Closed (fixed)

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