customize crud editor toolbar

I use a customized crud editor by implementing com.vaadin.flow.component.crud.CrudEditor and build a customized view component which is used as content for the editor. This editor should not have SAVE or DELETE button, only CANCEL should be visible. How can I hide those buttons or how can I customize the toolbar of the editor ? The toolbar of the CRUD grid itself can be ‘hidden’ by
crud.setToolbar(new Div()). But the CrudEditor API doesn’t provide the toolbar.