-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling inline editor nested inside table causes styles leaking #2403
Comments
Hello, I tried to reproduce your issue without success. Could you check if you can still reproduce it with clean CKEditor installation (without external plugins)? You could use https://ckeditor.com/latest/samples/ to check if it works correctly. |
It's a bit weird. When I download https://github.com/ckeditor/ckeditor-releases/archive/4.10.1/4.10.1.zip , the file ckeditor.js contains at lines 1056 / 1057: The interesting part is the last statement, i.e. adding class "cke_table-faked-selection". This will be added to all ascendant table elements. In my case also the surrounding table. I can fix it if prepending a check like: |
Oh, I just realize that the link to the release-zip points to another github repository (ckeditor-releases instead of ckeditor-dev). What is the relation between the two? Do the releases published in ckeditor-releases not base on the code in ckeditor-dev ? confused.. |
As I understand your issue is about creating table selection when selecting whole text and applying style. If so, this issue is not limited to forms - exists for any element inside table cell: I agree that selection shouldn't be changed when styling text selection inside a table cell. Please, let us know if I'm wrong about the issue. About our repositories structure - |
I updated the title and your reproduction steps to better reflect the issue. |
We are attempting to upgrade our product to 4.10.1 and discovered this problem. This not only changes the background color of the td but also prevents the highlighting of selected text, although the selection does take place. Also, the background color we are seeing is darkgray, taken from tableselection.css: .cke_table-faked-selection { Is there a workaround for this without editing the source? |
Also, the darkgray background color remains even after selecting other elements. |
What @jacekbogdanski added in the video above is not exactly what we are experiencing. We have a table where multiple ckeditor fields (and other content) are contained. When we mark text within a ckeditor field and make it bold (for example), the whole td-table element where the ckeditor field is in becomes gray. This means the grey background is not in the ckeditor field, but around it. This false behaviour comes from the code snipped cited above. See my screenshot: |
@sasgeoff broken selection responsiveness after toggling styles may be caused by #2419. However, I don't have an issue with the remaining cell background color on selection change. Can you provide more details e.g. OS and browser? Are you able to reproduce the issue using https://ckeditor.com/latest/samples/ ? Some GIF image would be very helpful thus selection may be placed differently and sometimes it's hard to spot the issue. @markussc I'm not able to reproduce the issue with a grey background - are you sure that it's not your custom CSS styles for |
I have reproduced this issue in jsfiddle: OS: Windows 10, browser: Chrome, CKEditor version: 4.10.1 |
Thanks @sasgeoff , this corresponds exactly to my issue. |
Thanks! Now we are on the same page. I can confirm the issue and I will update the issue description accordingly to new information. Also, I found that the issue with the blue background caused by fake selection is already reported here: #2357, so there is no need for extracting it into a separate ticket. |
Will a fix be in the next release (4.10.2)? Do you know the target date for the next release? |
@jacekbogdanski : just created a simple fix for it (#2459). Maybe you don't want to merge it like this, but it should give an idea where to start with. |
FYI: Bug was introduced in 4.7.0 (last working version is 4.6.2) |
My management is asking me to escalate this issue. They see this as a block that is preventing us from obtaining some very important security updates. This issue breaks our product and so prevents us from moving to the latest version. Please consider this fix with the highest priority. We appreciate your focus on this issue as soon as possible. |
Fixed in 4.11.2. |
Is there a planned date for 4.11.2? |
Hey @sasgeoff, the release is planned for January 9. You can always check the release dates in the milestones 🙂 |
I know this is closed, but I have seen this error reproduce in the latest version. 4.13.1 |
@epchristi if you could provide repro steps, we will be able to investigate this issue. |
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
The selected text is bold.
Actual result
The table cell gets a grey background. The css-class "cke_table-faked-selection" is added to the table's td-element
Other details
The text was updated successfully, but these errors were encountered: