I'm trying to figure out if a certain phrase (it can contain a newlines or bullet points) is contained in the contentState of an editor instance.
How do I lookup if a text (“the lazy fox jumped\n over the \n• lazy dog”) is contained in the editorState?
Is there a helper/util method to do such task?
Can I get the offset of such a match?