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

docs(v3): documentation including all of the changes made for version 3 #95

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

nperez0111
Copy link

This PR is meant to show the documentation for version 3 of tiptap

Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tiptap-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 2:59pm

background-color, font-size, line-height, selection
const pos = nodeViewProps.getPos()
if (pos !== undefined) {
// use pos
}

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?

Copy link
Author

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)

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!

* update docs for undo-redo extension

* add changesets
* update docs for collaboration cursor to reflect name changes

* add changesets
@lilnasy
Copy link

lilnasy commented Mar 14, 2025

The preview is private. Is that intentional?

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.

4 participants