ckeditor5
ckeditor5 copied to clipboard
Font styles for list bullets/numbers
📝 Font styles for list bullets/numbers
At this moment there is no way to change list numbering or bullets color/font-style/font-weight etc. So when the user changes styles of text within list item (like color), the color of the numbers/bullets does not change(and there is no other way to change it).
This problem has been very frustrating for our users. I see several possible solutions for this:
- Add some functionality to Font plugins to recognize lists in selection and apply styles to them.
- Add some functionality to List plugins to allow setting font color/size etc in a new UI.
- Add a new feature with a new separate interface to apply list font styles
I would say that the preferred approach is 1. but i guess it could be complicated to implement. Also, in the meantime if there are no plans to implement this in the near future i would appreciate some advice on how to approach this problem, so that I could probably implement a new plugin for this on my own.
If you'd like to see this feature implemented, add a 👍 reaction to this post.
Do you expect that people should be able to set the style themselves? Or should it be inherited from the following text? I think that some editors do the latter.
Ideally styles should be inherited from text, but the problem here is that text inside list item may consist of multiple parts with different styles(first word is white, second is black), so it's not exactly clear on what style to inherit.
We could probably always use the first found child styles, and it would be good enough for the most cases.
Setting styles by user is less obvious and user-friendly approach, but if it's more feasible to implement it's also an option which is better than nothing.
this issue was solved or exist some plugin to fix that? I have the same error, I want to change the styles list from style text
+1 - Same for me. Any workaround is appreciated too.
Any update on this, still not being able to color the Li Bullet in Ckeditor 37.0.1
This would be great to have, users of the product I work on are specifically asking for this functionality. At least for now, an alternative to including it out of the box in newer versions would be a snippet that we can use directly in the onReady function. This would much appreciated if doable
+1 Any progress on this?
We were discussing this quite recently, and from the technical and UI perspective this will be very challenging. While GDoc, and Word operate on pure canvas
elements, we have to accept the semantics of HTML and default styles. Some ideas appeared to dynamically pull content styles of lists' children but it would require developing some heuristics for multiple styles. A PoC from @pszczesniak: https://codepen.io/piotrekszczesniak/pen/xxBXbEN
Commenting to bring more attention for this issue :)
This is especially problematic with sizing. There are cases where the number for the list item is one font size and the list item itself is another size.
Any more insight into workarounds to always have them be the same? It seems like a rare edge case someone will want to have the document list number be different than the items font itself. no?
@Witoso Any updates? If we wanted to enforce that the numbered list styling to always match that of the numbered list item to 'inherit' that of the list item content, is there a known method for that so we avoid having conflict with the default styles? This is a pretty huge flaw that should be addresses as a priority IMO.