Don't break undo/redo and formatting in command edit