fix(Editor): restore editor from maximized state when command is run