- Issue created by @msbtterswrth
- Assigned to shailja179
- Status changed to Needs review
over 1 year ago 9:02am 7 July 2023 - ๐ฎ๐ณIndia shailja179 India
@msbtterswrth,
This was a requirement to disable this scroll in https://ckeditor.com/old/forums/CKEditor-3.x/Disable-Scroll-Bar.
If you want to enable this, you can use this code in your custom css with some parent id..ck-source-editing-area textarea{ overflow: visible; }
This should work.
- ๐บ๐ธUnited States msbtterswrth
@shailja179, that forum post is for cke 3 from over 10 years ago.
This is a new issue that did not occur in cke4 in d8,d9 or d10. It is new to cke 5. Are you saying this is expected behavior? I can not see the full content of my source code within the editor currently without adding custom code.
I can certainly patch it locally, but this is already happening on three client sites, it seems like we should either fix this upstream by either fixing the height so we can see the entire contents or add a scroll back in like in cke4.
- Issue was unassigned.
- Status changed to Active
over 1 year ago 2:20pm 7 July 2023 - ๐บ๐ธUnited States smustgrave
@shailja179 FYI should avoid assigning tickets to yourself unless you're a maintainer
https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett... โShould just leave a comment you'll be working on it
Seems like a valid bug so moving to Active as there is no patch yet.
Thanks!
- ๐ฆ๐บAustralia darvanen Sydney, Australia
Can confirm this is a valid bug and it is upstream, on their snippets site they alter the CSS to cater for it:
I propose we do the same thing in the core ckeditor5 module.
- Status changed to Needs work
over 1 year ago 2:14am 10 July 2023 - ๐ฆ๐บAustralia darvanen Sydney, Australia
Here's a patch that solves the problem for Drupal 10. Suggestions on how to test this welcome, can't guarantee I'll have the time to create one.
Leaving NW for a test.
- ๐ฆ๐บAustralia darvanen Sydney, Australia
My IDE moved the 80 character line ๐
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
https://github.com/ckeditor/ckeditor5/issues/10731 says this was fixed in October 2021?!
I investigated and found โฆ that this is a regression introduced by โจ CKEditor 5 should not grow to infinite height Fixed ๐
- Status changed to RTBC
over 1 year ago 2:51pm 10 July 2023 - ๐บ๐ธUnited States msbtterswrth
I tested the patch in #9 from @darvanen and that is working excellently for me! Not sure if there's anything else that needs to be done, but I marked it as RTBC. Thanks for the quick work friends!
- Status changed to Needs work
over 1 year ago 2:53pm 10 July 2023 - ๐บ๐ธUnited States msbtterswrth
Putting this back to NW because there isn't a test yet for it, my bad!
- last update
over 1 year ago Composer error. Unable to continue. - last update
over 1 year ago 29,442 pass - last update
over 1 year ago 29,442 pass - last update
over 1 year ago 29,442 pass - last update
over 1 year ago 29,442 pass - last update
over 1 year ago 29,442 pass - last update
over 1 year ago 29,441 pass, 1 fail - last update
over 1 year ago 29,442 pass - Status changed to Needs review
over 1 year ago 5:22am 11 July 2023 - ๐ณ๐ฑNetherlands spokje
First attempt at a Nightwatch test, also it seems that testing if an element has scrollbars is not without it's own challenges.
(My implementation was based on https://stackoverflow.com/questions/4814398/how-can-i-check-if-a-scrollb...)Defenitely needs some JavaScript-Jefe eyes on this.
- last update
over 1 year ago Build Successful - last update
over 1 year ago 29,443 pass - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
That test does appear to reproduce the problem and accurately verify failure without the patch and success with! ๐
But โฆ I still think this is the wrong solution.
+++ b/core/modules/ckeditor5/css/editor.css @@ -19,3 +19,9 @@ +div.ck-source-editing-area textarea {
Compare this selector to the selector above:
.ck-editor__main > :is(.ck-editor__editable, .ck-source-editing-area) {
, which as I wrote in #10 is what introduced this bug (in โจ CKEditor 5 should not grow to infinite height Fixed ).AFAICT the selector should be more specific, I suspect this:
.ck-editor__main > .ck-source-editing-area textarea {
- ๐ฆ๐บAustralia darvanen Sydney, Australia
The
.ck-editor__main > :is(.ck-editor__editable, .ck-source-editing-area)
selector isn't directly affecting the text area. The text area is just inheriting anoverflow: hidden
from the injected styles for the editor. - Assigned to lauriii
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Hm โฆ summoning @lauriii ๐ค
- Status changed to Needs work
over 1 year ago 8:54am 11 July 2023 - ๐ฆ๐บAustralia darvanen Sydney, Australia
You're very welcome ๐
I needed the library and it seemed daft not to contribute it.
The selectors from 14 will work too, there must be some kind of Drupal practice here Iโm not aware of. Iโm nowhere near my computer right now so I canโt update it.
Nicely done with that test too!
- ๐ณ๐ฑNetherlands spokje
Iโm nowhere near my computer right now so I canโt update it.
Never leave home without a computer...
Here's an updated patch, fail-patch stays the same.
- last update
over 1 year ago 29,443 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:18am 11 July 2023 - Status changed to RTBC
over 1 year ago 2:40pm 11 July 2023 -
lauriii โ
committed 91609efd on 11.x
Issue #3372922 by Spokje, darvanen, msbtterswrth, Wim Leers: Regression...
-
lauriii โ
committed 91609efd on 11.x
-
lauriii โ
committed 70db0faf on 10.1.x
Issue #3372922 by Spokje, darvanen, msbtterswrth, Wim Leers: Regression...
-
lauriii โ
committed 70db0faf on 10.1.x
- Status changed to Fixed
over 1 year ago 5:14pm 11 July 2023 - ๐บ๐ธUnited States msbtterswrth
Thanks for the fast work everyone! ๐
- ๐บ๐ธUnited States agarzola
Hi! We just ran into this issue and our client is asking about a fix. Before we go and apply this patch ourselves, is there a way to find out when a 10.1.2 release might be published containing this fix?
Thanks!
- ๐ณ๐ฑNetherlands spokje
Looking at https://www.drupal.org/about/core/policies/core-release-cycles/schedule#... โ (and replacing 10.0.x with 10.1.x, since the versions written there seem a tad outdated) 10.1.2 should be in a theatre/release near you around Aug. 2nd, so in 2 weeks.
- ๐บ๐ธUnited States agarzola
Many thanks, Spokje! I was not sure whether the 10.0.x dates applied to 10.1.x.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 1:52pm 3 August 2023 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
This was released yesterday, in https://www.drupal.org/project/drupal/releases/10.1.2 โ ๐