Re: Different FilePath

  •  07-22-2005, 7:01 AM

    Re: Different FilePath

    I tried that and it still won't get rid of links back to the cuteeditor.  The problem I have is that all the graphics are trying to link to http://myhost/CuteSoft_Client/CuteEditor/news/my.jpg
     
    where it should be
     
    http://myhost/news/my.jpg

    I have tried
     
    RemoveServerNamesFromUrl="true" UseRelativeLinks = "true" DisableAutoFormatting = "true"
     
    and all combinations of it.
     
    BUT IT STILL WON'T WORK ARHHHHH!!!!!
     
    My new code looks like this
     
    <%@ Page Language="VB" ValidateRequest="False" %>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
        <head>
      <title>ASP and ASP.NET WYSIWYG Editor - Edit Static Html Example </title>
      <link rel="stylesheet" href="css/barefoot.css" type="text/css" />
     </head>
        <body >
            <form runat="server"> 
       <CE:Editor id="Editor1" EditorWysiwygModeCss="css/barefoot.css" EditCompleteDocument="true" AllowPasteHtml="false" ThemeType="Office2003_BlueTheme" runat="server"></CE:Editor><BR>
       <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />   
       <asp:textbox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="730px" Font-Name="Arial"></asp:TextBox>         
    </form>
     </body>
    </html>
    <script runat="server">
     Public Sub Page_Load(sender As object, e As System.EventArgs)
     Editor1.FullPage=true
     Editor1.UseRelativeLinks = true
     Editor1.RemoveServerNamesFromUrl = true
     Editor1.DisableAutoFormatting = true
      If Page.IsPostBack Then
       Editor1.SaveFile("news.htm")
       textbox1.Text = Editor1.Text
      Else
       Editor1.LoadHtml("news.htm")
      End If
     
     End Sub
     public Sub Submit(sender As object, e As System.EventArgs)
      Editor1.SaveFile("news.htm")
      textbox1.Text = Editor1.Text
     End Sub
    </script>
     
    PLEASE HELP IT IS DRIVING ME INSANE!!! The above file is in the same location as the file I am trying to edit if that helps.
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems