# EditorState.doc.text not available, when text is more than 32 lines.

**URL:** https://discuss.codemirror.net/t/editorstate-doc-text-not-available-when-text-is-more-than-32-lines/7932
**Category:** v6
**Created:** [March 1, 2024, 8:07am UTC](https://discuss.codemirror.net/t/editorstate-doc-text-not-available-when-text-is-more-than-32-lines/7932 "2024-03-01T08:07:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yashrode774](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/y/4af34b/32.png) [@yashrode774](https://discuss.codemirror.net/u/yashrode774)
#### Post date: [March 1, 2024, 8:07am UTC](https://discuss.codemirror.net/t/editorstate-doc-text-not-available-when-text-is-more-than-32-lines/7932/1 "2024-03-01T08:07:39Z")

</div>

When I try to get EditorState.doc[‘text’] for the content when the content is more than 32 lines, it gives error, on debugging it more I found out that EditorState.doc creates children when the lines exceed 32. Is there any way to stop this from happening?

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [March 1, 2024, 8:24am UTC](https://discuss.codemirror.net/t/editorstate-doc-text-not-available-when-text-is-more-than-32-lines/7932/2 "2024-03-01T08:24:41Z")

</div>

That property isn’t part of the public interface. You don’t want to be using it at all.
