`editor.switchTo`: don't use `editor.restoreSelectionAfterManipulation`.
`editor.mainContainer`: Use `editor.restoreSelectionAfterManipulation`.