Optional
saveThe callback to be executed when the data needs to be saved.
This function must return a promise that should be resolved when the data is successfully saved.
ClassicEditor
.create(editorElement, {
dataFacade: {
save(dataApi: GetDataApi) {
return saveData(dataApi.getData());
},
},
});
.then( ... )
.catch( ... );
The configuration of the
DataFacade
.