[CLOSED] HtmlEditor

  1. #1

    [CLOSED] HtmlEditor

    Hello,

    Wondering if someone can help me with this, kind of annoying. When you run the following example below:

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    <script runat="server">
    
    </script>
    
    <!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 id="Head1" runat="server">
        <title>Example</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ScriptManager ID="ScriptManager1" runat="server" />
            <ext:HtmlEditor ID="Example" e runat="server" />
        </form>
    </body>
    </html>
    Replication steps:

    1. Enter "Hello World"
    2. Highlight "Hello World" and add a hyper link
    3. Hyperlink should point at "/Example.aspx" click OK
    4. Click Source View
    5. Notice Href="/Example.aspx"
    6. Switch back to WYSIWYG
    7. Click Source View (again)
    8. Notice Href="http://localhost/Example.aspx" (or whatever your machine is ;))

    Small but enough of an impact on me, can anyone recommend a method to override this?

    Cheers,
    Timothy
  2. #2

    RE: [CLOSED] HtmlEditor

    I'm investigating this issue. There's nothing in the extjs library that appears to rewritting the hrefs so it apeears to be specific to something IE is doing. The rewrite only occurs in IE.

    I'll update this thread when I find out some more information.*


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] HtmlEditor

    This appears to be the default behaviour of IE and I have not been able to locate a way to "turn it off".

    I tested the exact same functionality in four other 3rd party HtmlEditors and they all behave in the same manner. The href/url was rewritten by IE in all editors.


    If you find a 3rd party HtmlEditor that does not rewrite the href/url, please post a link.


    Geoffrey McGill
    Founder
  4. #4

    RE: [CLOSED] HtmlEditor

    Hmmm, is there no way to activate one of the listener events to strip the content?

    I can't have this because it my management program runs on my localhost while the public interface runs on our production environment which are two very different urls ;)

    Cheers,
    Timothy
  5. #5

    RE: [CLOSED] HtmlEditor

    You may be able to parse the content client-side by tapping into a listener, or it might be easier to parse/replace the http/url prefixes server-side when the HtmlEditor submits.*

    Geoffrey McGill
    Founder
  6. #6

    RE: [CLOSED] HtmlEditor

    I'm thinking server-side is probably the easiest, I noticed the blur and focus listener events are not firing for the HtmlEditor.

    You know if its possible to strip the beginning and end paragraph tags? Appears to be automatic but I think its browser specific?

    Cheers,
    Timothy
  7. #7

    RE: [CLOSED] HtmlEditor

    I noticed the blur and focus listener events are not firing for the HtmlEditor.
    See,*http://www.extjs.com/deploy/dev/docs...orm.HtmlEditor


    "Note: The focus/blur and validation marking functionality inherited from Ext.form.Field is NOT supported by this editor."


    I removed <Blur> and <Focus> from the <Listeners> and <AjaxEvents>. Same things applies to the <Change> Listener/AjaxEvent which is not fired on the <ext:HtmlEditor>.

    You know if its possible to strip the beginning and end paragraph tags?

    Again, probably best done server-side after the form submit.


    Hope this helps.


    Geoffrey McGill
    Founder
  8. #8

    RE: [CLOSED] HtmlEditor

    Thanks Geoffrey.

    Cheers,
    Timothy

Similar Threads

  1. [CLOSED] ListView with HtmlEditor -> HtmlEditor value is null
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 17, 2012, 12:50 AM
  2. [CLOSED] HtmlEditor
    By ndotis in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 20, 2010, 9:23 PM
  3. [CLOSED] HTMLEditor defaultFont
    By SamFoot in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 30, 2009, 8:29 AM
  4. [CLOSED] HtmlEditor
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 10, 2009, 5:21 PM
  5. [CLOSED] ext:HtmlEditor cleanHtml
    By Emre in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 27, 2009, 1:35 PM

Posting Permissions