-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Style dropdown] Improvements #14274
Comments
Drupal uses the official What would allow |
Thanks! Allow me to share more comments on this (@Reinmar or @niegowski feel free to share yours). The original issue was too generic, and it lacked the very specific detail that should have been there: support for the current block widgets of the editor (tables, lists, etc.). Most of those were implemented, hence the closing. Style dropdown [SD] operates on HTML alongside the GHS plugin. We cannot make it generic in a way, that it works with all widgets by default. Widgets are a layer SD isn't concerned about. What we need to do is to make SD aware how it should integrate with certain features (and their HTML). That's why we need more specific feedback, which features lack such behavior. And then, there are tricky parts. Images have their styling implementation. Should we duplicate it? Combine it with SD? Those are questions we don't have answers to yet.
@niegowski any ideas how this could be done? |
Most (table, list), but not all.
Ahhh! This is why
IOW:
|
Could you share some links to remarks about this? It would help a lot. I checked most conversations about the Style dropdown on our GH, and the tables and lists are the top comments, images almost do not appear. Even on the Drupal side
Lots of those comments make sense 👍 I just keep in the back of my head the remarks on the need for SD to be visible directly on the elements as the better UX choice than the large list of styles. I'm also worried about the confusion of users that applying image styles would be in two places and discovering which is where. I think most people won't grasp the difference between the presentational/positional. cc @dagdzi
Quick look at the code, it is. The new plugin was created to listen to the SD events to inform if the style can be applied. |
I'm trying to make a custom block widget I created compatible with the Styles plugin. It's view downcast creates an outer I'm trying to figure out if it's possible for me to allow creating a Style for the outer section element. In CKE4 I could do this by declaring the widget properly. From reading the comments above, it seems like it may be the Style plugin that needs to be made compatible with my custom element, is that right? Does that mean I can't really do it without hacking the Style plugin? Please bear with me - the linked example for how the Table plugin was made to work with this didn't help me much. For example, it doesn't have anything there about data downcast where I might need to concerned about combining standard CSS classes on the outer element with classes from the Style plugin. Or maybe I don't need to deal with that manually? |
Improvements to our Styles plugin:
Retention of styles
Support for elements
UX
The text was updated successfully, but these errors were encountered: