Paste image with Internet Explorer

4 posts, 1 answers
  1. Thomas Luck
    Thomas Luck avatar
    38 posts
    Member since:
    Jun 2006

    Posted 02 Mar 2015 Link to this post

    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>

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 04 Mar 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Thomas Luck
    Thomas Luck avatar
    38 posts
    Member since:
    Jun 2006

    Posted 04 Mar 2015 in reply to Ianko Link to this post

    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.
  5. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 05 Mar 2015 Link to this post

    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.

     
Back to Top