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

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

5 Answers 64 Views
Editor
This is a migrated thread and some comments may be shown as answers.
thomas
Top achievements
Rank 1
thomas asked on 28 Sep 2013, 10:52 PM
 <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]

5 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 01 Oct 2013, 02:44 PM
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!
0
thomas
Top achievements
Rank 1
answered on 01 Oct 2013, 03:48 PM
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!
0
Kiril Nikolov
Telerik team
answered on 03 Oct 2013, 07:01 AM
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!
0
Roman
Top achievements
Rank 1
answered on 13 Jul 2015, 04:25 PM

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.

 

 

0
Kiril Nikolov
Telerik team
answered on 14 Jul 2015, 11:03 AM

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!
 
Tags
Editor
Asked by
thomas
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
thomas
Top achievements
Rank 1
Roman
Top achievements
Rank 1
Share this question
or