I would like to have the possibility to modify the pasted content before it is inserted by providing a callback function. This function would be called with the content after Kendo's internal cleanup and the cleanup I specified through the other options has run.
It would look like this:
@Component({
selector: 'my-app',
template: `
<kendo-editor [pasteCleanupSettings]="pasteCleanupSettings"></kendo-editor>
`
})
export class AppComponent {
public pasteCleanupSettings = {
// other options...
custom: (input: string) => {
return '<h1>I can do anything I want in here</h1>' + input;
}
}
}
Basically I want the same behavior as the jQuery editor provides through pasteCleanup.custom: https://docs.telerik.com/kendo-ui/api/javascript/ui/editor/configuration/pastecleanup#pastecleanupcustom