Skip to content
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

fix: gap cursor to insert #18163

Closed
wants to merge 7 commits into from
Closed

fix: gap cursor to insert #18163

wants to merge 7 commits into from

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Oct 24, 2023

Problem

The current node insertion logic is buggy.

Changes

Adds a new node insertion after custom nodes

How did you test this code?

@@ -146,3 +147,20 @@ export function useSyncedAttributes<T extends CustomNotebookNodeAttributes>(

return [parsedAttrs.current, updateAttributes]
}

export function isCustomNode(node: Node): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

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

Reminder for myself - we can do this nicer with the canvas PR, as it autogathers all the custom components

@daibhin daibhin closed this Oct 26, 2023
@daibhin daibhin deleted the dn-fix/gap-cursor branch October 26, 2023 16:21
@daibhin
Copy link
Contributor Author

daibhin commented Oct 27, 2023

Covered in #18248

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