This is a migrated thread and some comments may be shown as answers.

Not able to paste the image in Kendo UI Editor

1 Answer 482 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nirmal
Top achievements
Rank 1
Nirmal asked on 11 Sep 2017, 06:18 AM

Hi, I am using Kendo UI editor. When I copy the text and image and paste it, only the text is getting pasted and not the image. When I use snag it to insert the snap in editor, I am able to paste the image. Is their an option to enable pasting image?

 

Thanks ahead!

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 12 Sep 2017, 03:10 PM
Hello Nirmal,

If you are copy/pasting text + image from Word, the image indeed is not pasted as expected, but this is due to the browser's security policy that we do not have control over. You can verify if that is the case in the browser dev tools console. In Chrome an exception will be thrown (Not allowed to load local resource...), more on which you can find in this stackoverflow thread.
See this dojo, in which below the editor there is a standard div HTML element (with attribute contenteditable="true"). The browser will block pasting text + image copied from Word in both the Editor and in the div below it.
Within the Editor itself copy/pasting text + image works as expected (screencast).

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Nirmal
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or