Completed
Last Updated: 17 Jan 2022 15:25 by ADMIN
ADMIN
Rumen
Created on: 14 Sep 2016 15:06
Category: Editor
Type: Bug Report
1
MS Edge pastes table as an image in Radeditor from Excel instead of html
When part of a table from MS Excel is copied and pasted into RadEditor under Edge, the RadEditor inserts an image instead of the html for the table. It inserts <img alt="" src="data:image/png;base64, ... " /> instead of the html.

Steps to reproduce:

Open http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx in MS Edge.On the editor select the html and delete everything.
On the editor select design
Open any Excel file copy a couple of cells
Paste in the Editor
On the editor select html
Instead if html the there is an image tag
<img alt="" src="data:image/png;base64,iVBOR ... YII=" />

With firefox, IE 11 and Chrome the html is pasted. For MS Edge the Image tag is pasted.

Workaround:
<telerik:RadEditor runat="server" ID="RadEditor"></telerik:RadEditor>
<script>   
    Telerik.Web.UI.Editor.Utils.containsHtmlAtClipboard = function(oEvent) {
        var result = oEvent && oEvent.clipboardData && oEvent.clipboardData.getData &&
            oEvent.clipboardData.types && oEvent.clipboardData.types.length &&
            Telerik.Web.UI.Editor.Utils.containsElement(/text\//i, oEvent.clipboardData.types);
 
        return result;
    }
</script>
1 comment
ADMIN
Rumen
Posted on: 17 Jan 2022 15:25

Not happening in Edge Chromium.