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

Outdated docs for NodePos from "@tiptap/react" #26

Open
bohdan-mykhailenko opened this issue Sep 11, 2024 · 0 comments
Open

Outdated docs for NodePos from "@tiptap/react" #26

bohdan-mykhailenko opened this issue Sep 11, 2024 · 0 comments

Comments

@bohdan-mykhailenko
Copy link

0. Link to docs topic.

1. Current situation

According to docs:

constructor of NodePos:

pos – The position you want to map to
editor – The editor instance you want to use

Code example:
const myNodePos = new NodePos(100, editor)

2. Problem

When try to create NodePos you deal with class that require ResolvedPos instance:

Code example:
new NodePos(pos: ResolvedPos, editor: Editor, isBlock?: boolean, node?: Node | null): NodePos

3. Way to fix

Need to clarify what you actually need to create NodePos.

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

No branches or pull requests

1 participant