Add <link .....> tag with Cute Editor 6.1 text

Last post 07-16-2008, 11:24 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  07-16-2008, 6:32 AM 42256

    Add <link .....> tag with Cute Editor 6.1 text

    I have a cute editor 6.0 version and i have a drop down from which i select the css  file name which are strored in a folder. When i select a css file name from drowp down then i attach a link tag to the cuteeditor text by calling these funtion of a class from the web page :
     
    On web page:
    Editor1.Text = objTemplateDialogBox.AddCssClassForInsert1(intThemeId, Editor1.Text)
     
    On class file:

    Public Function AddCssClassForInsert1(ByVal StyleValue As Integer, ByVal EditorText As String) As

    String

     

    Dim oTheme As New Alto2007.ThemeBase(StyleValue)

    Dim sCssFileName = oTheme.getCssFileName()

    Dim iStyleSheet As Integer = StyleValue

    If iStyleSheet <> 0 Then

    If iStyleSheet = 1 Then

     

    EditorText = "<link href='/" & ConfigurationManager.AppSettings("applicationName") & "/include/RedTrayTheme.css' rel='stylesheet' />" & EditorText

    EditorText = replaceArrowButton(EditorText, 1)

    Else

    'Alto6.34_0021606_20_2008-04-09

    EditorText = "<link href='/" & ConfigurationManager.AppSettings("applicationName") & "/include/" & sCssFileName & ".css' rel='stylesheet' />" & EditorText

    EditorText = replaceArrowButton(EditorText, 1)

    End If

     

    Else

    EditorText = "<link href='/" & ConfigurationManager.AppSettings("applicationName") & "/include/RedTrayTheme.css' rel='stylesheet' />" & EditorText

    EditorText = replaceArrowButton(EditorText, 1)

    End If

     

    AddCssClassForInsert1 = EditorText

    End Function

    This function attach the <link ..........> tag to the EditorText and i find editor text with link tag on my web page
     
    Now i upgrade cute editor 6.0 to 6.1
    This cute editor version does not add link tag to the editor1.text on web page . In the function EditorText has <link .........> tag but when it return to the web page  editor1.text does not have <link ......> tag. I also write class's code to the web page itself but it does not attact link tag.
     
    How can i add link tag with Editro1.Text in cute editor 6.1. Please reply soon
  •  07-16-2008, 11:24 AM 42266 in reply to 42256

    Re: Add <link .....> tag with Cute Editor 6.1 text

    Please set the following properties to false.
     

    Editor.EnableStripLinkTagsCodeInjection Property

    Specifies whether to remove <link> tags which contain malicious, client-side executable code before writing the string into the db. When this property is set to true (the default) Cute Editor strips all <link> tags which contain malicious, client-side executable code from the html to prevent link tag injection attack.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML