Skip to content

Insert <hr> at the nearest root#1081

Merged
samuelpecher merged 1 commit into
mainfrom
insert-hr-at-root
May 29, 2026
Merged

Insert <hr> at the nearest root#1081
samuelpecher merged 1 commit into
mainfrom
insert-hr-at-root

Conversation

@samuelpecher
Copy link
Copy Markdown
Collaborator

HorizontalDividerNode should be a direct child of the root. Attempting to insert it at the cursor throws an error in certain nodes, like headings.

It's a DecoratorNode, and should be a direct child of the root.
Attempting to insert it at the cursor throws an error in certain nodes,
like headings.
Copilot AI review requested due to automatic review settings May 29, 2026 10:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/editor/command_dispatcher.js
@samuelpecher samuelpecher merged commit 9ba00bf into main May 29, 2026
13 checks passed
@samuelpecher samuelpecher deleted the insert-hr-at-root branch May 29, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants