Editor Paste event fires but no data in e.html on IE 10 - works on chrome.

6 posts, 0 answers
  1. thomas
    thomas avatar
    4 posts
    Member since:
    Sep 2013

    Posted 28 Sep 2013 Link to this post

     <div id="homeBanner" contenteditable="true" style="height: 160px; overflow: hidden; border: 1px dashed gray; padding: 0">
         <img src="~/Content/TemplateImages/homeBanner1.png" />
      </div>

    IE 10:
    // sample code
        $("#homeBanner").kendoEditor({
            paste: function (e) {
                alert('[' + e.html + ']');
            }
        });

    result: alert []


    Chrome:
    result: alert [pasted contents]
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 01 Oct 2013 Link to this post

    Hello Thomas,

    I have tried to reproduce this using the online demos and IE10, but to no avail. Please check the following screencast, showing the correct behaviour.

    http://www.screencast.com/t/ZGGxg9epe
     
    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. thomas
    thomas avatar
    4 posts
    Member since:
    Sep 2013

    Posted 01 Oct 2013 Link to this post

    Hi Kiril, thank you for looking at this. Perhaps this jsfiddle will help: http://jsfiddle.net/tbaker/vREg3/

    Paste some data into the editor box.
    It pops up an alert in all browsers except IE (i have 10).

    Thanks!
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 03 Oct 2013 Link to this post

    Hi Thomas,

    Thank you very much for the shared fiddle.

    It seems like this problem only occurs, when the editor is initialized in inline editing mode. You can also observe this behaviour in our demo for inline editing. Sorry I missed that when I first answered your question.

    I have logged this issue in our internal bug tracker, so it will be fixed in a later build. As a small gesture of gratitude I have updated your Telerik Points balance.

    Thank you very much for your understanding on this matter.
     
    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Roman
    Roman avatar
    3 posts
    Member since:
    Apr 2013

    Posted 13 Jul 2015 Link to this post

    I had this issue in which pasting on IE browsers wouldn't work (the e.html value was empty every time) and then i found this link on the Telerik documentation, related to adding your site as a "trusted site"

    http://docs.telerik.com/kendo-ui/web/editor/troubleshooting#pasting-content-in-the-editor-when-using-ie-does-not-display-anything

    After I did that, it worked like a charm for me, no change in the code.

     

     

  7. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 14 Jul 2015 Link to this post

    Hello Roman,

    You are right that adding to the trusted sites can also help with some old IE browsers.

    Thanks for sharing it!!!

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready