editor: fix resolving cursor destination after breaking content at the edge of text...