We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to docs:
constructor of NodePos:
NodePos
pos – The position you want to map to editor – The editor instance you want to use
pos
editor
Code example: const myNodePos = new NodePos(100, editor)
const myNodePos = new NodePos(100, editor)
When try to create NodePos you deal with class that require ResolvedPos instance:
ResolvedPos
Code example: new NodePos(pos: ResolvedPos, editor: Editor, isBlock?: boolean, node?: Node | null): NodePos
new NodePos(pos: ResolvedPos, editor: Editor, isBlock?: boolean, node?: Node | null): NodePos
Need to clarify what you actually need to create NodePos.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
0. Link to docs topic.
1. Current situation
According to docs:
constructor of
NodePos
:pos
– The position you want to map toeditor
– The editor instance you want to useCode example:
const myNodePos = new NodePos(100, editor)
2. Problem
When try to create
NodePos
you deal with class that requireResolvedPos
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
.The text was updated successfully, but these errors were encountered: