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

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?

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

1 Like