Not able to paste the image in Kendo UI Editor

2 posts, 0 answers
  1. Nirmal
    Nirmal avatar
    2 posts
    Member since:
    Sep 2017

    Posted 11 Sep Link to this post

    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!

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 12 Sep Link to this post

    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.
Back to Top