If a link is at the end of a paragraph, and I put my cursor at the end and start typing, whatever I type becomes a part of the link. Is there a way (except for adding a newline and removing it) to turn my text into normal text?
how can we move from:
<p>some text <a href='...'>Link<CURSOR_HERE></a></p>
<p>some text <a href='...'>Link</a><CURSOR_HERE></p>
Looks like your approach would also make inclusiveLeft to always return false.
If my hyperlink text is one character, I can’t use pm.doc.marksAt to get the mark (since both left and right are excluded). Is there a way to make inclusiveRight false but inclusiveLeft true? Do you have better approach? Thanks.