Clean Up HTML on the server side

  •  09-23-2009, 6:47 PM

    Clean Up HTML on the server side

     
    I found these in the help section but when I try to implement them in my code I get the following:
     
    Object doesn't support this property or method: 'CleanUpHTMLCode'
    Object doesn't support this property or method: 'CleanUpMicrosoftWordHTML'
     
     You can teach your end users use the Clean Up HTML button (Clean Up HTML) in Cute Editor to remove extraneous tags and streamline your HTML code.

    But it's easy to make mistakes if your end users forget Clean Up HTML before saving the content into database.

    Cute Editor provides two server side methods which can fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup.

    You can use Editor.CleanUpHTMLCode method to remove empty tags, combine nested FONT tags, and otherwise improve messy or unreadable HTML code.

    You can aslo Editor.CleanUpMicrosoftWordHTML method to remove the extraneous HTML code generated by Microsoft Word.
     
    Here's my object: 

    Dim editor
    Set editor = New CuteEditor

    editor.ID        = "event_comments"
    editor.FilesPath      = "/includes/components/CuteEditor_Files"
    editor.EditorWysiwygModeCss  = "/includes/components/CuteEditor_Files/style/text_editor.css"
    editor.AutoConfigure     = "Simple"
    editor.Width       = 733
    editor.Height       = 500
    editor.ThemeType       = "office2007"
    editor.CleanUpHTMLCode    = "true"
    editor.CleanUpMicrosoftWordHTML = "true"
    editor.UsePhysicalFormattingTags = "true"
    editor.Text        = theComments
    editor.ImageGalleryPath    = thePath
    editor.FlashGalleryPath    = thePath
    editor.MediaGalleryPath    = thePath
    editor.FilesGalleryPath    = thePath
    editor.TemplateGalleryPath   = thePath
    editor.Draw()

View Complete Thread