Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We need to test the quickedit and ckeditor in an environment with a working javascript. Otherwise, we can get an elusive regression due to js-errors.
This can be closed as a duplicate, after #2828528: Add Quick Edit Functional JS test coverage
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Original post
Step to reproduce for last 8.5.x:
1. Choose 'Quick edit' for body field.
2. Click by text (or typing any symbol)
3. Bit wait and see Browser Console log (F12).
4. No CKEditor and 'Save' button.
Comment | File | Size | Author |
---|---|---|---|
#16 | interdiff-3-15.txt | 1.65 KB | Anonymous (not verified) |
#15 | 2917218-15.patch | 3.77 KB | Anonymous (not verified) |
#3 | 2917218-3.patch | 5.73 KB | Anonymous (not verified) |
#3 | 2917218-3-test-only.patch | 3.88 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedvaplas created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedPatch with https://github.com/ckeditor/ckeditor-releases/tree/master/plugins/shared... solved problem.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #6
andypostLooks good to go
Comment #7
alexpottThis is a critical bug as it got released in 8.4.1
Comment #8
cilefen CreditAttribution: cilefen as a volunteer commentedI was just typing the same!
Comment #9
alexpottI can confirm it for me.
If I do
git revert -n defc9a0c9d
on 4.7.1 then it is fixed. I think we should revert the CKEditor upgrade from 8.4.x and 8.5.xComment #10
SkinThanks I` ve tested the patch on drupal 8.4.1 and now quick edit works as expected and the Browser console is clean from errors.
Comment #11
Wim LeersWTF, how did that happen?! Pinging the CKEditor team.
Comment #12
mlewand CreditAttribution: mlewand commentedLooks like the plugin (sharedspace) is simply missing. Assuming that you're not bundling it into the main ckeditor.js file it should be available in `ckeditor/plugins/sharedspace` directory.
I'm trying to set up D8 instance based on 8.5.x branch to see what exactly is going on.
Comment #13
cilefen CreditAttribution: cilefen as a volunteer commentedTry 8.4.2: https://www.drupal.org/project/drupal/releases/8.4.2
Comment #14
SkinI` ve just tried Drupal 8.4.2 ad quick edit is working.
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedSo, now it is not critical issue, because after the lightning reaction, we have drupal 8.4.2 without this flaw. And an alerted CKEditor team. Awesome!
What now? Based on #2908864-15: Update CKEditor library to 4.7.3 we need more reliable JSB testing.
We already have issue about #2870458: Convert web tests to browser tests for quickedit module, after which the tests will definitely be better. But we are unlikely to add an additional test coverage there, if it goes beyond the existing code logic.
Therefore, we can add advanced checks in current issue (with update title + IS), without waiting for the convert issue.
I began to move in this direction, when I suddenly found #2828528: Add Quick Edit Functional JS test coverage!
A year ago, @Wim Leers invested in this task, and together with other developers created a super thorough test coverage!
So, I just slightly corrected my patch, because in CKEditor 4.7.2 extra line breaks are added. Next I will try to push forward #2828528: Add Quick Edit Functional JS test coverage. If it is successful, I also closed current issue as a duplicate.
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #18
Wim LeersHow did I not see #15?! :( Sorry, @vaplas!
Comment #20
lauriiiThank you @vaplas. Adding this test case is a good step to the right direction and will make sure that the integration between Quickedit and CKEditor isn't completely broken.
Committed 966dca1 and pushed to 8.6.x. Thanks!