-
-
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
Rich text toolbar has no item for <hr> horizontal rules #9707
Comments
gasman
added
type:Bug
status:Unconfirmed
Issue, usually a bug, that has not yet been validated as a confirmed problem.
labels
Nov 22, 2022
I've noticed this too in Wagtail 4.1.1. |
laymonage
removed
the
status:Unconfirmed
Issue, usually a bug, that has not yet been validated as a confirmed problem.
label
Dec 9, 2022
I am experiencing this in Wagtail 4.1.1. |
chosak
added a commit
to chosak/draftail
that referenced
this issue
Feb 22, 2023
When the command palette is built without a prescribed list of commands, the horizontal rule is added to the list of entity types, if it is configured via enableHorizontalRule. If the command palette is built by passing a list of commands, though, the horizontal rule is not added. This seems inadvertent and is the cause of wagtail/wagtail#9707, unless I am misudnerstanding how this code is supposed to work.
chosak
added a commit
to chosak/draftail
that referenced
this issue
Feb 22, 2023
When the command palette is built without a prescribed list of commands, the horizontal rule is added to the list of entity types, if it is configured via enableHorizontalRule. If the command palette is built by passing a list of commands, though, enableHorizontalRule is ignored and the HR is not added to the list of entity types. This seems inadvertent and causes the HR to get dropped even if it has been configured. This seems to be the cause of wagtail/wagtail#9707, unless I am misunderstanding how this code is supposed to work.
This might need to be fixed in Draftail: springload/draftail#457 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary
As per #9281 (comment) - when the 'hr' rich text feature is enabled (which it is as default, according to https://docs.wagtail.org/en/stable/advanced_topics/customisation/page_editing_interface.html#limiting-features-in-a-rich-text-field), there is no item for it in the rich text block-element menu as expected. They can still be inserted by typing
---
, but there is no UI indication to make this discoverable.Steps to Reproduce
<hr>
elements.Technical details
The text was updated successfully, but these errors were encountered: