FormatBlock block doesnt work for custom tags

  •  07-16-2010, 4:07 PM

    FormatBlock block doesnt work for custom tags

    Has anyone got the FormatBlock drop down to work?
     
    I can not get the formatbock section to work via the config file or through code. No Matter what I do I cant get any custom tag to work!  i.e.
    <del>, <cite>, <address>, >strike>, etc ... 
     
    How can I get this working, I have this currently:
     
                If Not FCKeditorKB2.ToolControls("FormatBlock") Is Nothing Then
                    Dim dropdown As CuteEditor.RichDropDownList
                    Dim richitem As CuteEditor.RichListItem
                    dropdown = DirectCast(FCKeditorKB2.ToolControls("FormatBlock").Control, CuteEditor.RichDropDownList)

                    'the first item is the caption   
                    richitem = dropdown.Items(0)

                    'clear the items from configuration files   
                    dropdown.Items.Clear()

                    'add the caption   
                    dropdown.Items.Add(richitem)

                    'add text and value   
                    dropdown.Items.Add("Normal", "<p>")

                    'add value and value   
                    dropdown.Items.Add("Heading 1", "<h1>")

                    'Add html and text and value   
                    dropdown.Items.Add("<b style='font-size:9pt'>[[Heading 5]]</b>", "Heading 5", "<h5>")

                    'add value and value   
                    dropdown.Items.Add("Deleted Text", "<del>")

                End If
     
    Thanks!
     
    Eric
    Filed under:
View Complete Thread