I found when editing a <a>
tag, the behavior is different when it has attribute href or not.
Adding character after <a>
tag with href (the cursor was inside the <a>
node), the added char will not be inside the <a>
tag
<a href="fakelink">tes</a>
type 't' it will become
<a href="fakelink">tes</a>"t"
Adding character after tag without href (the cursor was inside the node), the added char will be inside the tag
<a>tes</a>
type 't' it will become
<a>test</a>
why is this?
Is it possible to make a span node behave like first case, I mean when you add character after that span node (the cursor was inside the span node), the new char is outside the span node?