commit/rollback for the editor