Open pomek opened 4 years ago
Can you write this as expected vs actual? I'm having a hard time figuring out what the problem is.
In both cases, editor's selection is at the end of a link. The inspector shows it outside, in the next node.
There's no such thing as a selection in the textnode in the model. <$text linkHref>foo[]</$text>
and <$text linkHref>foo</$text>[]
are one and the same position. So from this perspective, the inspector does not lie.
What could be improved, though, is the normalization of the caret rendering because I admit this could be annoying in certain situations.
Something wrong happens around links. Check out screenshots attached in the issues listed below:
"amet"
is highlighted, inspector renders selection after the node)"CKSource."
is highlighted, inspector renders selection after the node)