Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Propose ResolvedPos.posAtIndex #14

Closed
wants to merge 1 commit into from
Closed

Conversation

marijnh
Copy link
Member

@marijnh marijnh commented Jun 26, 2020

Add a posAtIndex(index, depth?) method to ResolvedPos, which computes the position after a given index at a given depth. Like with other ResolvePos methods, depth would default to the resolved position's depth, but can be used to select a parent node to index instead.

Rendered RFC

@marijnh
Copy link
Member Author

marijnh commented Jul 8, 2020

Accepted as RFC 10.

@marijnh marijnh closed this Jul 8, 2020
@marijnh
Copy link
Member Author

marijnh commented Jul 8, 2020

Implemented in prosemirror-model 1.11.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant