-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Adding .ck class to elements in content generates conflicts between features #936
Comments
The One of the options is that only the base feature (e.g. the editable UI view or the The other option is that we should not use this class inside the editor's content. It was meant to improve the specificity of selectors, but perhaps it doesn't have to do that everywhere. Also, in certain scenarios instead of writing a selector such as Let's see this on examples:
|
Maybe we could hotfix this issue by adding view post fixer. Every element which should always have a |
I don't think that's a good idea. Once we'll understand what direction to take, fixing this will be trivial. |
But we have to take a direction and it does not look like we do :). Also, this causes some ugly looking bugs now. |
We decided to use |
PRs related to the issue: ckeditor/ckeditor5-widget#38 @dkonopka could you please review if these are all changes that are needed to be done? I hope I haven't missed something. |
Internal: `.ck` class should not be added to elements inside editor editable. See ckeditor/ckeditor5#936.
Internal: `.ck` class should not be added to elements inside editor editable. See ckeditor/ckeditor5#936.
Internal: `.ck` class should not be added to elements inside editor editable. See ckeditor/ckeditor5#936.
Internal: `.ck` class should not be added to elements inside editor editable. See ckeditor/ckeditor5#936.
Internal: `.ck` class should not be added to elements inside editor editable. See ckeditor/ckeditor5#936.
🎉 |
Feature: Implemented styles for the widget selection handler (see ckeditor/ckeditor5-widget#40). Also fixed a regression after ckeditor/ckeditor5#936 which made the widget use wrong outline styles when the editable is blurred. Minor code refactoring in the widget styles. BREAKING CHANGE: Several `--ck-color-widget-*` custom properties have been renamed to match the project's naming standards.
The
.ck
class became the common part of some features and creates conflicts between them.For example, placeholder needs to know where to add and remove
ck
class because it might be added to the element that already had that class.Another example might be a conversion from marker to some highlight (like presenting user selection in collaboration use-cases). When that highlight is using
ck
class it needs additional logic to not remove those class on elements like widgets or links (link highlighting using class will propably useck
class aswell).I guess we should discuss if adding this class to elements in the editor's contents is a good idea.
The text was updated successfully, but these errors were encountered: