Closed moteus closed 2 years ago
@moteus, it's not "broken", it's a side-effect of the markdown markup in comments, which hides some of the characters, and hidden characters are not removed by Cut
and ReplaceSelection
calls. DeleteRange
does ignore those, so that's why it works.
ReplaceTarget
should work as well, so you may want to use that (although you'll have to use SetTargetStart
and SetTargetEnd
to mark the target). Also see #827.
Trying this code from the local console
I've got
Note that without
Refresh/Update
I gotSo I belive its something related with comment styles.
PS. I solve this with
DeleteRange
/InsertText