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

  •  07-16-2008, 6:32 AM

    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
View Complete Thread