Major Problem with code cleaner

Last post 11-24-2005, 6:29 AM by rcroeder. 6 replies.
Sort Posts: Previous Next
  •  11-22-2005, 6:19 AM 12851

    Major Problem with code cleaner

    I have the wysiwyg editor in a page called editor.asp in folder private.

    When I click the code cleaner function ( applies to all options ) it somehow updates all my links. FOr example if the document I am editing has a link :
     
    <a href=default.asp?id=12> link</a>
     
    when I click code cleaner to remove font tags it will change all links to the following:
     
    <a href=http://webserver/private/editor.asp?id=12> link</a>
     
    This is causing a problem can you help??
  •  11-22-2005, 3:44 PM 12875 in reply to 12851

    Re: Major Problem with code cleaner

    try adding

    editor.RemoveServerNamesFromUrl=true
     
    and possibly
     
    editor.DisableAutoFormatting = true
     
    RC
  •  11-23-2005, 4:46 AM 12910 in reply to 12875

    Re: Major Problem with code cleaner

    This does not work.
     
    Why does the editor update the links when the clean fonts tags option is clicked??
  •  11-23-2005, 5:29 AM 12911 in reply to 12910

    Re: Major Problem with code cleaner

    I am not sure why this is happening, I tried it on the demo site, inserted a <a href='/asp/dd.asp'>dd</a> ran the code cleaner and it did not touch my tag. You may have a bad file or your properties are not right. Put the section of code you are using up here so we can have a look.
     
    RC
  •  11-23-2005, 5:46 AM 12913 in reply to 12911

    Re: Major Problem with code cleaner

    ok, try creating a link like <a href="default.asp"> link</a>  then using the code cleaner to remove font tags and see what happends, it even does this in the demo..
     
        editor.CustomAddons = myCustomAddons
        editor.AutoConfigure =  "EnableAll"
        editor.ThemeType="Office2003"
        editor.DisableAutoFormatting = true
        editor.RemoveServerNamesFromUrl = true
        'editor.ChangeAbsoluteURLsToRelative =true
        UseRelativeLinks =true
        editor.Width = 500
        editor.Draw()
  •  11-23-2005, 5:46 AM 12914 in reply to 12913

    Re: Major Problem with code cleaner

    I have included the bit of code I am using...

     JonathanASP wrote:
    ok, try creating a link like <a href="default.asp"> link</a>  then using the code cleaner to remove font tags and see what happends, it even does this in the demo..
     
        editor.CustomAddons = myCustomAddons
        editor.AutoConfigure =  "EnableAll"
        editor.ThemeType="Office2003"
        editor.DisableAutoFormatting = true
        editor.RemoveServerNamesFromUrl = true
        'editor.ChangeAbsoluteURLsToRelative =true
        UseRelativeLinks =true
        editor.Width = 500
        editor.Draw()
  •  11-24-2005, 6:29 AM 12977 in reply to 12913

    Re: Major Problem with code cleaner

     When I type this and use code cleaner
    <a href="default.asp"> link</a>

    I get this
    <a href="/asp/default.asp">Link</a>
     
     
    The link in hereis your text plus a directory pointer to the root. Maybe why I am not seeing this is I always start the file name relative to the root of the website ../asp/default.asp or /asp/default.asp. When it sees thoses it appears not to change the url.
View as RSS news feed in XML