Last Updated: 15 Feb 2022 10:52 by ADMIN
Created on: 13 Aug 2020 12:30
Category: Editor
Type: Feature Request
Angular Editor: Add possibility to modify pasted content before insert through callback function

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:

    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: 

Dimiter Topalov
Posted on: 15 Feb 2022 10:52


Available in v.3.x of the @progress/kendo-angular-editor package.

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.

Dimiter Topalov
Posted on: 20 Aug 2020 06:52

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.

Dimiter Topalov
Progress Telerik