Fixed
Project:
Drupal core
Version:
12.0.x-dev
Component:
ckeditor5.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Oct 2026 at 10:45 UTC
Updated:
8 Nov 2026 at 13:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
xjmComment #3
xjmComment #4
xjmComment #5
xjmComment #6
godotislateComment #7
godotislateThis is a 12.0.0 rc blocker.
Comment #9
longwaveSome test failures in ckeditor5 JS tests so I guess this needs a bit of work.
Comment #10
godotislateThe only remaining failing test is
Relevant test code:
I think this is happening because something changed CKEditor's styles, and there's a margin now above the first line. See below, with the new version test output on the right:

I haven't looked into what sets the expectation the window height should be greater than the editor height.
The other failing tests that were resolved:
Something I discovered in testing is that balloon tool tips now have white backgrounds, so the text can't be read. I haven't looked at what rules need to be changed to fix this yet.


HEAD
MR
Also, seems like this is a preexisting issue, but clicking in editor outside the
drupal-mediaelement does not close the balloon like it does for other elements such as table or image. This might be worth a follow up.Going to take a break from this for now, will see if I can revisit some time over weekend. Others are welcome to jump in.
Comment #11
godotislateI also ran into an unrelated Media Library issue while testing, so I opened #3634443: media-library.ui.js added to page before jQuery.
Comment #12
xjmI think I figured out the purpose of the test? It's meant to test the auto-expanding of the editor, such that when you add content that will expand past the initial size of the field, the window automatically scrolls to the new bottom edge of the editor. For example, on HEAD, create a new node on standard at
/node/add/article, and hit enter a bunch of times in the text field.So the fact that the margins now push the last line outside the window might actually be a real (albeit slight) bug, despite the... unique nature of the test.
Comment #13
godotislateAll tests are green now.
tl;dr: This is ready for review now.
First, a correction:
While the balloon does close for the table element, it does not close for image.
About CKEditor5HeightTest:
Traced the origin to #3273755: CKEditor 5 should not grow to infinite height:
Since the test was failing after the update to v49 with the editor height being 637 and the window height being 625, I changed the
20pxin the CSS rule to35pxto cover the difference. Note that in CKEditor5HeightTest.php, there are comments documenting expected pixel dimensions for the height. These might be out of date now, but I think we can adjust them in a follow up if need be.About the tooltips.
Tracked this to a combination of things.
Previously in v48.5.1, the relevant CSS rules were:
https://github.com/ckeditor/ckeditor5/blob/1867f7a292a98e5740873b5f42f20...
and
https://github.com/ckeditor/ckeditor5/blob/1867f7a292a98e5740873b5f42f20...
In 49.0.1, the relevant rules look like this:
https://github.com/ckeditor/ckeditor5/blob/b8cd0da471427176f4cb2c79be503...
and this
https://github.com/ckeditor/ckeditor5/blob/b8cd0da471427176f4cb2c79be503...
The intent is that
--ck-balloon-panel-background-colorproperty should set the tooltip balloon bg color, but the use of--ck-color-panel-backgroundis preserved for backwards compatibility.Because of that BC layer, the rules in default_admin's ckeditor5.pcss.css and variables-color-semantic.pcss.css now set the background for the tooltip to white when the theme is in light mode.
With v48.5.1, the default_admin theme
.ckoverride for--ck-color-panel-backgroundwas superseded by the value being set in a more specific selector.ck.ck-balloon-panel.ck-tooltip, but the latter was removed in v49.To fix this, I added a css rule in default_admin to remove the BC layer:
Here are screenshots of what the tooltips with v49 looked like before and after the above CSS change:


Before
Light
Dark
After


Light
Dark
I think this is good enough to address the regression here. There can be a follow up if desired to made the tooltip colors respect light/dark mode, and/or to check whether
--ck-color-panel-backgroundshould be used/overridden anymore indefault_admin.Comment #14
xjmThis looks good to me; while I don't speak modern CSS, the changes seem straightforward enough. I agree that possibly fixing it to respect light/dark mode can be a followup to unblock the RC. It's it's a very small issue now that the underlying accessibility problem is resoled.
Comment #15
godotislateCreated the follow up: #3634547: [PP-1] Make CKEditor balloon tooltips respect Admin light or dark mode
Comment #16
xjmComment #17
xjmJust so we don't miss it by sorting on the other list.
Comment #18
godotislateComment #19
godotislateComment #20
godotislateBumping priority since this is a blocker.
Comment #21
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #22
godotislateMerge conflict was in the performance test numbers and has been resolved.
Comment #23
smustgrave commentedOkay let me know if there are steps I'm missing.
Applied the MR on a ddev setup
Did a git add core, so I have everything in the MR staged
ddev ssh and cd into core (following the steps from https://www.drupal.org/about/core/policies/core-dependency-policies-and-...)
Ran yarn run vendor-update = no change
Ran yarn run build:ckeditor5 = no change
Ran yarn run build:ckeditor5-types = which made core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc not sure if that's good or bad?
Searched core/core.libraries.yml and found 1 instance that still needs to be replaced and that's the parent ckeditor5 which still says 48.5.1
Comment #24
smustgrave commentedFor the manual testing never know exactly what to target so I kinda just test the main buttons and of course media library. But question, looking at the MR I see some changes were needed for the tests. Should we do a CR or something as this may be another ckeditor update that breaks contrib modules?
Comment #25
godotislateNot seeing this in the MR.
Yes, changes are expected and are in the MR.
No, I don't think so. Changes are specific to these tests. See #10 and #11.
Comment #26
smustgrave commentedIt's not in the MR but I still see this locally with the MR applied
Comment #27
godotislateNot sure what happened on your local, but the change to 49.0.1 in that line is in the MR.
https://git.drupalcode.org/project/drupal/-/merge_requests/17633/diffs?f...
Comment #28
godotislateI just double-checked my local version of the branch, and 48.5.1 does not appear anywhere
I also switched local branch to

mainand applied the MR diff downloaded from Gitlab, and the change is applied:@smustgrave, re-reading #23, I think you might need to do
yarn installfirst, so that yournode_modulesare updated.Comment #29
smustgrave commentedWeird maybe curl didn't pull the full diff down. I switched to the branch though and it's all good. Did the same steps #23 so going to mark.
Comment #30
xjmWent to rebuild this as part of reviewing and... got 49.1.0 instead of 49.0.1. At first I thought I'd made a typo, but v49.1.0 was released two days ago. So we should probably update to that instead.
Comment #31
godotislateComment #32
godotislateUpdated the MR to 49.1.0.
Comment #33
smustgrave commentedReviewed the new release notes and seems to be around AI improvements. Which makes me concerned about the future of ckeditor and how much AI is taking over it.
Comment #36
longwaveCommitted and pushed acfffb4307a to main and db863809e63 to 12.0.x. Thanks!