ckeditor5-inspector
ckeditor5-inspector copied to clipboard
Selection is being displayed incorrectly around the `linkHref` nodes
Something wrong happens around links. Check out screenshots attached in the issues listed below:
- https://github.com/ckeditor/ckeditor5/issues/7568 (
"amet"is highlighted, inspector renders selection after the node) - https://github.com/ckeditor/ckeditor5/issues/7588 (
"CKSource."is highlighted, inspector renders selection after the node)
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.