I’d like to replace delete ranges in a single operation, without generating multiple change events.
Right now, I’m using
replaceSelections(selections, replacements), where
selections is a proper array of
anchor * head pairs and
replacements is an array of the same length containing only the empty string. This works as expected…except CM generates a change event for each range being replaced.
Is this a bug, or am I using the API incorrectly?