Last Updated: 20 Aug 2020 06: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: https://docs.telerik.com/kendo-ui/api/javascript/ui/editor/configuration/pastecleanup#pastecleanupcustom 

1 comment
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