Span tag appears inside of link tag

  •  02-20-2008, 2:54 PM

    Span tag appears inside of link tag

    When I create a link inside some text then select all the text in the editor and change the class, the editor adds a span tag inside the link tag only it there is a <p> tag in the page. When I remove the <p> tags there is no problem. I seem to be unable to replicate the issue in the online demo, but it happens in a fresh install of cute edit on our server. Can someone please she some light on why this is happening?
     
    The text I'm using to test is:
    <p>testing the <a href="http://www.google.com" target="_blank">link</a> paragraph thing</p>
    <p>we'll see if <a href="http://www.yahoo.com">this</a> makes a difference</p>
     
    This text seems to work fine though:
    testing the <a href="http://www.google.com" target="_blank">link</a> paragraph thing<br><br>
    we'll see if <a href="http://www.yahoo.com">this</a> makes a difference

    My configuration is as follows:
     
    objRichEdit.ID = "txt_" & strDBFieldName & "_" & strDBSuffix
    objRichEdit.Text = strRichEditContents
    objRichEdit.FilesPath = "../Common/Objects/CuteEditor/CuteEditor_Files"
    objRichEdit.EditorBodyStyle = "font:normal 12px arial;"
    objRichEdit.EditorWysiwygModeCss = "../Common/Styles/stylesheet-RE.css"
    objRichEdit.ImageGalleryPath = "/CMImages"
    objRichEdit.FilesGalleryPath = "/CMFiles"
    objRichEdit.ThemeType="OfficeXp"

    objRichEdit.CssClassStyleDropDownMenuNames = "bodyText,bodySmall,bodyHead,bodyHead2,bodyHead3"
    objRichEdit.CssClassStyleDropDownMenuList = "bodyCopy,bodysmall,bodyHead,bodyHead2,bodyHead3"
      
    objRichEdit.BreakElement = "P"                                                    ' Create a <P> tag when the user hits [Enter]
    objRichEdit.EditorOnPaste = "PasteCleanHTML"                                    ' Clean bad HTML upon paste (including MS Word)
    objRichEdit.MaxHTMLLength = ( 80 * 1024 )                                        ' Allow 80k of HTML
    objRichEdit.Height = GetFieldParameter( csvParameters, "height" )
    objRichEdit.Width = GetFieldParameter( csvParameters, "width" )
    objRichEdit.ShowPreviewMode = false

    Andre
View Complete Thread