[CLOSED] [1.X] HtmlEditor and IE compatibility mode changes "a" tag

  1. #1

    [CLOSED] [1.X] HtmlEditor and IE compatibility mode changes "a" tag

    Hi

    I'm using HtmlEditor like in this example:

    ---------------------------------------------------------------------------------------------------------
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <ext:ResourceManager ID="rsm" runat="server">
            </ext:ResourceManager>
            <ext:HtmlEditor ID="Editor" runat="server">
            </ext:HtmlEditor>
        </div>
        </form>
    </body>
    </html>
    ---------------------------------------------------------------------------------------------------------
    Code Behind
    ---------------------------------------------------------------------------------------------------------
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Editor.Text = "<a href='www.google.com' />"
        End Sub
    ---------------------------------------------------------------------------------------------------------

    Well, when I use IE compatiblilty mode it changes href in link with current page path.

    Ex:
    <a href='www.google.com' />
    replaced by
    <A href="http://localhost:56379/www.google.com"></A>
    Are there any problem with HtmlEditor and IE when it loads any "a" tag?

    Greetings
    Last edited by Daniil; Jun 08, 2012 at 2:27 PM. Reason: Please use [CODE] tags for all code, [CLOSED]
  2. #2
    Hi,

    Please note that any IE compatibility modes are not officially supported.

    Though we are always try to help. In your case I would recommend to explicitly set up "http://" at the beginning of the link.
    this.HtmlEditor1.Text = "<a href='http://www.google.com' />";
  3. #3
    Ok, I assume that it's a browser limitation, but, are there other way to skip this browser modification? (Without using 'http://')
  4. #4
    I am afraid we can't affect on that behavior, it is under browser control.

Similar Threads

  1. Replies: 1
    Last Post: Jun 26, 2012, 11:29 AM
  2. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  3. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM
  4. Replies: 2
    Last Post: Mar 19, 2011, 1:17 PM
  5. Adding a tree node using "Mode=Remote"
    By mattwoberts in forum 1.x Help
    Replies: 2
    Last Post: Jan 07, 2011, 3:10 PM

Posting Permissions