Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Propose ResolvedPos.posAtIndex - #14

Closed
marijnh wants to merge 1 commit into
masterfrom
posAtIndex-method
Closed

Propose ResolvedPos.posAtIndex#14
marijnh wants to merge 1 commit into
masterfrom
posAtIndex-method

Conversation

@marijnh

@marijnh marijnh commented Jun 26, 2020

Copy link
Copy Markdown
Member

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

marijnh commented Jul 8, 2020

Copy link
Copy Markdown
Member Author

Accepted as RFC 10.

@marijnh marijnh closed this Jul 8, 2020
@marijnh

marijnh commented Jul 8, 2020

Copy link
Copy Markdown
Member Author

Implemented in prosemirror-model 1.11.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant