Pasting image from Word into editor causes error

1 Answer 47 Views
Editor
Bob
Top achievements
Rank 2
Iron
Iron
Veteran
Bob asked on 08 Mar 2023, 09:00 PM

We are seeing an error when pasting an image from a Microsoft Word document into the Kendo editor.  This can be reproduced on the demo site by creating a new Word document and selecting the Resume template, then copying the profile image out of Word and pasting it into the editor.

The error reported is:

Uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.
    at _fileToDataURL (kendo.all.js:313050:21)
    at Function.map (jquery.min.js:2:3630)
    at init._insertImages (kendo.all.js:313050:21)
    at init._handleImagePaste (kendo.all.js:313050:21)
    at init.onpaste (kendo.all.js:313050:21)
    at cut copy paste drop dragover (kendo.all.js:313050:21)
    at HTMLBodyElement.dispatch (jquery.min.js:3:12445)
    at r.handle (jquery.min.js:3:9174)

The problem is that because this error is thrown, the paste command is never executed in our code for processing the image.  Please let me know if there is anything we can do about this error.

Thanks,

Bob

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 13 Mar 2023, 11:59 AM

Hi Bob,

There is such an issue logging in our official Feedback Portal and you can follow it on the link below:

- https://feedback.telerik.com/kendo-jquery-ui/1571344-error-is-thrown-when-pasting-an-image-from-word-in-the-editor

Based on your report I increased the priority of the item.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor
Asked by
Bob
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Neli
Telerik team
Share this question
or