PasteHTML doesnt work properly in IE7 when using the breakelement.BR

Last post 12-07-2010, 12:48 PM by mreric. 7 replies.
Sort Posts: Previous Next
  •  07-28-2010, 2:25 PM 62782

    PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    Hi There,
     
    PasteHTML works fine in Firefox, however when you use PasteHTML in IE7, the pasted text is always after all the BR's in front of the next text.  Can someone please look into this, this is some critical functionality we are looking for.  The example below in IE7 causes the behavior.
     
    1. Use the code below.
    2. Put your cursor anywhere  in the middle between the start and end text.
    3. Click the insert text button.
    4. The code is pre-pended to the end text.
     
    --------------------------------------
    <%@ Page Language="VB" %>   
       
     <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
       
     <script runat="server">   
         
         Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
             
             If Page.IsPostBack = False Then
                 
                 FCKeditorKB2.AutoConfigure = AutoConfigure.Simple
                 FCKeditorKB2.BreakElement = BreakElement.Br
             
                 FCKeditorKB2.Text = "Start<br /><br /><br /><br /><br />End"
                 
             End If
             
         End Sub
         
         Protected Sub btnGo_Click(ByVal sender As Object, ByVal e As System.EventArgs)

         End Sub
         
    </script>   
       
     <html xmlns="http://www.w3.org/1999/xhtml">   
     <head id="Head1" runat="server">   
         <title>Untitled Page</title>  
        
        <LINK href="~/css/SOPHTrac.css" type="text/css" rel="stylesheet" />

     </head>   
     <body>   
         <form id="form1" runat="server">   
             <div>   
                 <asp:Button ID="btnGo" runat="server" Text="Insert Text" OnClick="btnGo_Click" OnClientClick="insertAtCursor_ActivityContent(this,'THIS IS INSERTED TEXT');" /><br />
                 <br />
                 <CE:Editor ID="FCKeditorKB2" runat="server" Width="275px" />   
             </div>   
         </form>   
     </body>   
     </html>   
     <script>   

       
    function insertAtCursor_ActivityContent(comingFrom, textToInsert) {
           
        //get editor
        var editor1 = document.getElementById('<%= FCKeditorKB2.ClientID %>');          

        //paste replace text in editor
        editor1.PasteHTML(textToInsert);   
       
    };
      
     </script> 
     --------------------------------------
     
    Thanks!
    Filed under:
  •  07-28-2010, 8:39 PM 62787 in reply to 62782

    Re: PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    Hi mreric,
     
    We are investigating this issue and will get back to you as soon as possible.
     
    Regards,
     
    Ken
  •  08-16-2010, 3:36 PM 63426 in reply to 62787

    Re: PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    Any luck?  Thanks!
  •  11-16-2010, 7:53 PM 65054 in reply to 62782

    Re: PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    Hi,
     
    That's a bug of IE selection bookmark.
     
    We have fix it and will release a new minor version a few days later.
     
    Regards,
    Terry.
  •  11-17-2010, 2:39 AM 65058 in reply to 65054

    Re: PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    Great, thanks.  When will the new version be released or where can i get the new code?
  •  11-28-2010, 8:46 PM 65181 in reply to 65058

    Re: PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    Hi mreric ,

    This issue has been fixed, please download the latest version and try again.

    Latest version downloads: http://www.cutesoft.net/downloads/folders/21904/download.aspx

    Regards,

    Ken



  •  12-07-2010, 12:35 PM 65318 in reply to 65181

    Re: PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    Thanks Ken. 
     
    This issue is still not resolved.  The example i gave in my first post still has the same issue with the new version. Can you please take a look and let me know if there is something i'm missing with the above code?
     
    The really annoying firefox space issue is resolved though :)
     
    Eric
  •  12-07-2010, 12:48 PM 65319 in reply to 65318

    Re: PasteHTML doesnt work properly in IE7 when using the breakelement.BR

    I lied ... upon further testing .. it does work for the most part .. enough so that it will work for my needs.  Thank you!
View as RSS news feed in XML