Editor Not Replacing <font> tags with <span>

Last post 01-17-2007, 3:57 PM by Maximus5684. 2 replies.
Sort Posts: Previous Next
  •  01-13-2007, 2:28 PM 25768

    Editor Not Replacing <font> tags with <span>

    I recently purchased CuteEditor for ASP.  I was under the impression that if I enabled editor.XHTMLOutput = "true" that the <font> tags would be replaced with <span style="..."> tags.  This is not happening when I load html from my database.  Here's my basic code:
     
    <%      
            
          Dim editor
          Set editor = New CuteEditor
          editor.ID = "Editor1"
          editor.Text = GetCode.Fields.Item("Col_Content").Value
          editor.FilesPath = "CuteEditor_Files"
          editor.ImageGalleryPath = "/../../../../filesystem/Images"
          editor.Height = 650
          editor.Width = 775
          editor.XHTMLOutput = "true"
          editor.Draw()
          
    %>
     
    Where GetCode.Fields.Item("Col_Content").Value is the retrieved code from my database.  This is my save function:
     
    function submit_message(frm,action)
    {
    var editor1 = obj_Editor1
    frm.Message_Body.value = obj_Editor1.getHTML();
    frm.submit();
    }
    Which is called from a "post" link with <a href="#" onClick="submit_message(document.forms.frmSubmit,3);">Post</a>
     
    So, I load the page with the HTML, go to HTML view to parse it, but it doesn't replace the <font> tags.  I figured it would then do this on save, but once I saved it and re-opened the page, still no <span>'s.
     
    And yes, I have tested this with the online http://cutesoft.net/asp/xmloutput.asp with the same result when copying and pasting the HTML in to the HTML view.
  •  01-17-2007, 10:07 AM 25851 in reply to 25768

    Re: Editor Not Replacing <font> tags with <span>

    Maximus5684,
     
    Cute Editor can make sure it doesn't create <font> tag. But it don'es have the function to automatically convert font tag to span tag.
     
    However, it provide the function to remove <font> function manually.
     
    >> click "clean up HTML" button
     
    >> Choose "clean up <font> tag option
     
     

    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

  •  01-17-2007, 3:57 PM 25886 in reply to 25851

    Re: Editor Not Replacing <font> tags with <span>

    Perhaps you should include complete HTML to XHTML cleanup in the next version?  Maybe I could even write the code for you?
View as RSS news feed in XML