I mean, my document starts like this:
hello google
Then I replace the hello
via tr.replaceWith()
. Now it becomes,
foobar google
Then let’s say I have a plugin on the link. It adds some text when cursor lands on it. This change is not undoable via tr.add('addToHistory', false)
.
foobar google.com
OK, now when I undo all the way, I would like to see this:
hello google.com
But I keep seeing duplicates,
hello google.com
hello google.com
How do I tackle this?