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
Hello,
Available in v.3.x of the @progress/kendo-angular-editor package.
Regards,
Dimiter Topalov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hello Simon,
Thank you for submitting this feature request. Providing the possibility to customize the pasted content via a callback would really be a nice enhancement to the Kendo UI for Angular Editor.
We will track the customer demand here, and will consider adding this feature to a future version of the component based on the interest.
Regards,
Dimiter Topalov
Progress Telerik