-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
docs(v3): documentation including all of the changes made for version 3 #95
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* added new options for floating-ui based menus * added changeset
background-color, font-size, line-height, selection
const pos = nodeViewProps.getPos() | ||
if (pos !== undefined) { | ||
// use pos | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it mean the getPos() === undefined
, and how should it be handled in that case?
Does it mean the node is not inserted yet / finished rendered?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ProseMirror/prosemirror-view#153
Once the node has been removed from the document, getPos
is no longer valid (since React can hold a reference to getPos
after something is deleted)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, okay, in my specific case, I have an action addChild
, so if getPos()
returns undefined
, I should not do anything probably :)
thanks for the quick reply!
…details extension (#103)
* update docs for undo-redo extension * add changesets
* update docs for collaboration cursor to reflect name changes * add changesets
The preview is private. Is that intentional? |
This PR is meant to show the documentation for version 3 of tiptap