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

Paste image with Internet Explorer

3 Answers 62 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Thomas Luck
Top achievements
Rank 1
Thomas Luck asked on 02 Mar 2015, 11:13 AM
Hi, I have trouble getting the image-paste-feature (inlined base64 data) of the RadEditor to work in Internet Explorer.

I see in the demo, that it actually works (IE11):
http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

However, when I use the demo code locally, it works in Firefox, but not in IE... I'm sure I forgot something (e.g.: is there a certain script I miss? I referenced only the DLLs).

ASPX code (no codebehind code)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Solution_Test.aspx.cs" Inherits="Solution_Test" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="../Common/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
        <div class="demo-container">
            <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools"
                Height="675px">
            </telerik:RadEditor>
        </div>
    </div>
    </form>
</body>
</html>

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 04 Mar 2015, 12:38 PM
Hello Thomas,

Could you please define from where the image is pasted (MS Word content, from HTML document, from a file etc.)?

Pasting in RadEditor mostly depends on the browser, therefore, I can only guess what might cause the difference using the demo code locally. Basically, it is the StripFormattingOptions that configure how content to be cleaned after pasting.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Thomas Luck
Top achievements
Rank 1
answered on 04 Mar 2015, 02:16 PM
Hi Ianko, thanks for your reply.
For testing, I only use a single image, like when you create a screenshot (e.g. [Alt]+[PrtScr]). My point is, that pasting this single image with [CTRL]-[V] into the editor works perfectly well in your demo (http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx), not only with Firefox but also with Internet Explorer. In both browsers the image is transformed to a base64 data source.
So fine so good!
But when I use the code from the demo in a local page (with the code I pasted above), doing the same procedure with Internet Explorer fails. Firefox still works...
And I don't have any clue what can cause the difference.
0
Accepted
Ianko
Telerik team
answered on 05 Mar 2015, 08:03 AM
Hi Thomas,

Make sure that the page ran locally on your end is opened under IE11 in Edge mode. As mentioned, this is a browser functionality and IE's compatibility mode does not support it.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Thomas Luck
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Thomas Luck
Top achievements
Rank 1
Share this question
or