URLType not working with INPUT form.

Last post 05-04-2011, 8:54 AM by Eric. 4 replies.
Sort Posts: Previous Next
  •  03-30-2011, 9:45 AM 66926

    URLType not working with INPUT form.

    Hello,

    I have URLType set to "Default" in my CuteEditor.  Mostly this works, however, when using the "Image Button" option which brings up the INPUT form,  I can add a Src: in like /example.ashx/blah.  When I switch tabs from Input to General for example, the Src: will have my CuteEditor url appended on the front when I switch back to Input.  http://www.mysite.com/myaspservice/example.ashx/blah.  Is there a way to prevent this?

    Thank you
  •  03-30-2011, 11:14 AM 66928 in reply to 66926

    Re: URLType not working with INPUT form.

    Dear EricR,
     
    Please try the following snippet, I have tested it and it works fine.
    <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.URLTyp="SiteRelative"   
       editor.Draw()            
       ' Request.Form(ID) access from other page
      %>
     
    Thank you for asking
  •  03-31-2011, 12:16 PM 66944 in reply to 66928

    Re: URLType not working with INPUT form.

    Well, the issue is that I need no URLs at all to be altered.  This includes entering them via forms or typing them by hand in the HTML view.  So when I have "Default" which is supposed to not convert URLs, I'm not expecting an input form for INPUT to append or change the Src url when I switch tabs.
     
    This is because the users that are going to be using my control will be entering in SiteRelative and Absolute paths.  I need to allow them to be able to do that which for the most part works with it set to "Default" except for the mentioned form.
  •  05-04-2011, 8:27 AM 67437 in reply to 66944

    Re: URLType not working with INPUT form.

    This issue is still occuring.
     
    <CE:Editor UseHTMLEntities="false" StyleWithCSS="true" EnableStripScriptTags="false" FullPage='true' EditorBodyStyle="font-family:'Microsoft Sans Serif'; font-size:'12';" BreakElement='P' ThemeType="OfficeXP" AutoConfigure="Full" DisableItemList="SelectAll, SelectNone, CssClass, LinkTree, Codes, Zoom, ImageMap, Save, New, Preview, ToFullPage, FromFullPage, SyntaxHighlighter, Help" URLType="Default" id="Editor1" Height="250px" runat="server" ></CE:Editor>
     
    Users are still experiencing SiteRelative paths being altered to Absolute paths.
     
    <td style="background-image: url(/images/hr_m_left.jpg); width: 203px; background-repeat: repeat-y; font-size: 1pt">&nbsp;</td>
     
    is being changed to
     
    <td style="background-image: url(http://www.example.com/images/hr_m_left.jpg); width: 203px; background-repeat: repeat-y; font-size: 1pt">&nbsp;</td>
  •  05-04-2011, 8:54 AM 67438 in reply to 67437

    Re: URLType not working with INPUT form.

    Dear Customer,
     
    You can create one filter and handle this:
     
    <%@ Page Language="C#" %>  
     
    <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>  
    <!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>Untitled Page</title>  
    </head>  
    <body>  
        <form id="form1" runat="server">  
            <div>  
                <CE:Editor ID="editor1" runat="server">  
                </CE:Editor>  
            </div>  
        </form>  
    </body>  
    </html>  
     
    <script>  
     
    function CuteEditor_FilterHTML(editor,code)  
    {  
     return code.replace("background-image: url(http://www.example.com", "background-image: url(");  
    }  
    function CuteEditor_FilterCode(editor,code)  
    {  
     return code.replace("background-image: url(http://www.example.com", "background-image: url(");
    }  
    </script> 
     
    Thank you for asking
View as RSS news feed in XML