TopLevelWrapper = function () {
  this.rootID = topLevelRootCounter++;
}
Ensures that, when possible, the selection range (currently selected text
input) is not disturbed by performing the transaction.