# Thoughts on offsets and positions

**URL:** https://discuss.prosemirror.net/t/thoughts-on-offsets-and-positions/706
**Category:** Uncategorized
**Created:** [March 23, 2017, 9:25am UTC](https://discuss.prosemirror.net/t/thoughts-on-offsets-and-positions/706 "2017-03-23T09:25:10Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![ngasst](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@ngasst](https://discuss.prosemirror.net/u/ngasst)
#### Post date: [April 1, 2017, 11:12pm UTC](https://discuss.prosemirror.net/t/thoughts-on-offsets-and-positions/706/7 "2017-04-01T23:12:04Z")

</div>

@sacha, you are absolutely correct. I did manage to get it working using textContent, by iterating over all nodes and resolving their position in the document, then using their start position to map it onto the textContent offsets. It is heavy and definitely not the best approach though. Once I’ve found the right approach, I’ll be sure to post it here for anyone facing a similar issue.

---

_[View the full topic](https://discuss.prosemirror.net/t/thoughts-on-offsets-and-positions/706)._
