# Find paragraph nodes start and end offsets

**URL:** https://discuss.prosemirror.net/t/find-paragraph-nodes-start-and-end-offsets/1094
**Category:** Show
**Created:** [December 10, 2017, 1:22pm UTC](https://discuss.prosemirror.net/t/find-paragraph-nodes-start-and-end-offsets/1094 "2017-12-10T13:22:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jstleger0](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/jstleger0/32/528_2.png) [@jstleger0](https://discuss.prosemirror.net/u/jstleger0)
#### Post date: [December 10, 2017, 1:22pm UTC](https://discuss.prosemirror.net/t/find-paragraph-nodes-start-and-end-offsets/1094/1 "2017-12-10T13:22:28Z")

</div>

Hello

Really enjoying ProseMirror.

However, We are having issues finding our paragraph offsets. In our schema, we have a `ParagraphNode` type that can contain `EntityNode` types.

When we use `doc.resolve(pos).parent` it resolves to an `EntityNode`. This is great but… is there a way of finding the `EntityNodes` parent (i.e: The `ParagraphNode`).

We need the `ParagraphNodes` start and end offset.

Apologies if this is a stupid question.

Best John

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [December 11, 2017, 10:01pm UTC](https://discuss.prosemirror.net/t/find-paragraph-nodes-start-and-end-offsets/1094/2 "2017-12-11T22:01:20Z")

</div>

You can access further ancestors of a given resolved position with `.node(depth)`. See the [docs](http://prosemirror.net/docs/ref/#model.ResolvedPos.node). Does that help?
