I have a custom inline node that outputs a span. The html of the doc is like
<p>Hello <span data-my-id="1234">Adam</span></p>
If I type the letter f into the word Adam, I would like to split the span. So it would look like
<p>Hello <span data-my-id="1234">Ad</span>f<span data-my-id="1234">am</span></p>
By default it does
<p>Hello <span data-my-id="1234">Adfam</span></p>
How could I force the span to always be split when the user either types or pastes in the middle of it?
I am using TipTap if that helps.