-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add UI for setting ID (anchors) on list items (<li>) #29838
Comments
The main change to unlock this would be to turn list items into child blocks. |
@mtias how much work would that be, and what are the BC implications? |
It's not trivial, but we are getting there tool-wise. See #6394. |
The http://w.org/about/security page has links in the content to footnotes which are in a list, using ids like Unfortunately the best I can do is link to the list element at present. For now I have changed to a non-list solution with paragraph tags. |
List items are now child blocks (or at least, they appear to be in the editor, not sure whether they truly are under the hood). It's now possible to set a CSS class on list items. @mtias are things now at the stage and anchors could be added to list items? |
What problem does this address?
I often find myself needing to specify anchors on individual list items (
<li>
) but the list block does not support this, although it does allow specifying anchors on the list itself (<ul>
or<ol>
). It would be very helpful if that were possible.What is your proposed solution?
I'm not sure what the backend JS would be, but from a UI perspective, when the cursor is within the text of a
<li>
, then theHTML anchor
field in theAdvanced
panel should apply to the list item (instead of the list as a whole).Of course, that may introduce some ambiguity about how to specify an anchor for the list as a whole, so I'm open to almost any UI that would allow me to specify anchors on list items.
The text was updated successfully, but these errors were encountered: