I have the start and end position of a decoration. I want to remove that word/annotation on button click, so I call
state.tr.replace(deco.from, deco.to). This works but I have whitespace remaining that I want to clean up.
"the club always." [ --> tr.replace(10, 16) --> ]
"the club .", I want to collapse the whitespace to reflect
Any pointers gratefully received