since this is `ToggleEditor`, this would be more consistent as `toggleType()`