Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Span tag appears inside of link tag

Last post 03-14-2008, 3:33 PM by Jaheckelsafar. 8 replies.
Sort Posts: Previous Next
  •  02-20-2008, 2:54 PM 37197

    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
  •  02-21-2008, 12:03 AM 37211 in reply to 37197

    Re: Span tag appears inside of link tag

    Jaheckelsafar:
    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
     
    Jaheckelsafar,
     
    Which version are you using?
     
    If you are using version 6.0, can you download the latest build and try again?
     
    keep me posted
     

    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

  •  02-21-2008, 9:36 AM 37226 in reply to 37211

    Re: Span tag appears inside of link tag

    Hi Adam. That was the first thing I did. Rhonda was quite helpful in getting me download a download link for version 6.0. She resent the initial order email and told me that the download link gets the latest build. Unfortunately the same issue occurs.

  •  02-21-2008, 10:54 AM 37237 in reply to 37226

    Re: Span tag appears inside of link tag

    Jaheckelsafar,
     
    Can you create a separate virtual directory and test it?
     
    The online demo is also using the download version.
     
    So it's strange it doesn't work for you.
     

    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

  •  02-22-2008, 8:39 AM 37278 in reply to 37237

    Re: Span tag appears inside of link tag

    Hi Adam,
     
    I have made a page with only an instance of cute editor on it (straight out of the download package, with the license copied over) and the issue still persists. Here is the code for the entire page:
     
    <!-- #include file="CuteEditor"CuteEditor_Files"include_CuteEditor.asp" -->

    <%
                    Dim objRichEdit
                    Set objRichEdit = New CuteEditor
                    objRichEdit.ID = "richedit"
                    objRichEdit.FilesPath = "CuteEditor/CuteEditor_Files"
                    objRichEdit.EditorBodyStyle = "font:normal 12px arial;"
                    objRichEdit.EditorWysiwygModeCss = "stylesheet-RE.css"
                    objRichEdit.ThemeType="OfficeXp"

                    objRichEdit.CssClassStyleDropDownMenuNames = "bodyText,bodySmall,bodyHead,bodyHead2,bodyHead3"
                    objRichEdit.CssClassStyleDropDownMenuList = "bodyCopy,bodysmall,bodyHead,bodyHead2,bodyHead3"

                    objRichEdit.BreakElement = "P"
                    objRichEdit.EditorOnPaste = "PasteCleanHTML"
                    objRichEdit.MaxHTMLLength = ( 80 * 1024 )
                    objRichEdit.Height = "480"
                    objRichEdit.Width = "640"

                    objRichEdit.Draw()
    %>
  •  02-22-2008, 12:36 PM 37290 in reply to 37278

    Re: Span tag appears inside of link tag

    Jaheckelsafar,
     
    Is your site online?
     
    If so, can you upload the examples included in the download package online so we can test it?

    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

  •  02-22-2008, 12:57 PM 37295 in reply to 37290

    Re: Span tag appears inside of link tag

    Hi Adam,
     
    I'll see about getting approval for posting this on the internet. I can't post the first example as it is part of a much larger application, but the second one should be no problem.

  •  03-03-2008, 3:41 PM 37512 in reply to 37290

    Re: Span tag appears inside of link tag

    Hi Adam,
     
    Sorry it took so long, but I got permission to post the test page externally. I sent you the URL in a PM

  •  03-14-2008, 3:33 PM 37985 in reply to 37512

    Re: Span tag appears inside of link tag

    Well, the issue seems to have solved itself somehow (on the test page I put up facing the internet anyway). It was still happening a few days ago, now it just works and I didn't change anything.
     
    Go figure.
     
    I did notice a weird bug in FireFox 2.0.0.12 though. When I use the second bit of example text and select everything as change the CSS class to BodyHead, the second link relocate to the proper location in the line of text. It stays where it is and the rest of the text goes over top of it. If I switch to the HTML view and back again, it renders properly.

View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.