We have made a feature similar to google doc, where we can perform actions like adding text, adding comment on seleted text, highlight & so on.
While using playwright on that DOC (which uses Rich text editor - prosemirror) -I am not able to select exact words/ sentence. It either selects random word or does noting.
Can you hep me out with ways so that I can select exact same text & add comment on it

We have made a feature similar to google doc, where we can perform actions like adding text, adding comment on seleted text, highlight & so on.
While using playwright on that DOC (which uses Rich text editor - prosemirror) -I am not able to select exact words/ sentence. It either selects random word or does noting.
Can you hep me out with ways so that I can select exact same text & add comment on it