Extraneous characters inserted in saved text box content in Chrome

Last post 07-18-2011, 7:08 AM by Kenneth. 5 replies.
Sort Posts: Previous Next
  •  11-16-2010, 11:42 AM 65041

    Extraneous characters inserted in saved text box content in Chrome

    Chrome is exhibiting a very weird behavior in the use of text controls. Here is the problem:
    1. Page displays a popup with a text control where the user enters some information - their skills etc
    2. User enters the text "This is a test"
    3. User clicks on the 'Save' button to save the entered information into the database.
    4. Saved content is "@import url(/css/cuteeditor.css); @import url(http://qa.guru.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); This is a test"
    5. Note the addition of a whole lot of stuff in front of the entered text.
    Would like to know the source of the problem, if Chrome is to be blamed for it, work arounds etc.  
     
    IE, Firefox and Safari do not exhibit this problem
     
    Shankar 

    Filed under:
  •  11-17-2010, 2:44 AM 65059 in reply to 65041

    Re: Extraneous characters inserted in saved text box content in Chrome

    Hi skrishguru,
     
    Can you reproduce this issue on demo http://www.cutesoft.net/example/general.aspx.
     
    If the demo works for you, please download the latest version and try again.
     
    Latest version downloads: http://www.cutesoft.net/downloads/folders/21904/download.aspx
     
    Also, you can try this way
     
    1. Open file "\CuteSoft_Client\CuteEditor\Template.aspx "
     
    2. Find section below and delete it
     
        <link type="text/css" rel="stylesheet" href='<%=CuteEditor.EditorUtility.ProcessWebPath(Context,Page,"Load.ashx?type=style&file=SyntaxHighlighter.css")%>' />
     
    Regards,
     
    ken
     
     
  •  11-17-2010, 11:15 AM 65066 in reply to 65059

    Re: Extraneous characters inserted in saved text box content in Chrome

    The demo works.
     
    Your work around:
    1. The code i see is different from what you have shown. I have  <link type="text/css" rel="stylesheet" href='<%=ResolveUrl("Load.ashx?type=style&file=SyntaxHighlighter.css")%>' /> which could be because of version difference. 
    2. Removing that line is not resolving the issue. Now i see test@import url(/css/cuteeditor.css); better than before, but not proper resolution.
    Will try download the latest version and see if that resolves the problem
     
  •  11-17-2010, 7:20 PM 65067 in reply to 65066

    Re: Extraneous characters inserted in saved text box content in Chrome

    Hi skrishguru,
     
    Also, you can try filter the extra code. Add the code below into the page and try again. Change the highlight code and make sure it same as your extra code. 
     
    <script>
    function CuteEditor_FilterHTML(editor,code)
    {
     return code.split("@import url(/css/cuteeditor.css); @import url(http://qa.guru.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);").join("");
    }
    function CuteEditor_FilterCode(editor,code)
    {
    return code.split("@import url(/css/cuteeditor.css); @import url(http://qa.guru.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);").join("");
    }
    </script> 
     
    Regards,
     
    Ken 
  •  07-17-2011, 9:48 AM 68575 in reply to 65067

    Re: Extraneous characters inserted in saved text box content in Chrome

    I realize this is an old thread but I'm having the exact same issue as described when using Chrome.  Anytime I switch from Normal to HTML and back it adds an extra line for that style sheet.  Removing the lines proves pointless as it adds it again anytime you type something in.  This is not happening in any other browsers.
     
    We are currently running version 6.3 of CuteEditor and upgrading to 6.6 for $100 is not a valid option for a simple fix.  Has there been minor releases of the editor that included this fix?  One which that we can utilize with our current key?
     
    Thanks,
    Dusan 
  •  07-18-2011, 7:08 AM 68591 in reply to 68575

    Re: Extraneous characters inserted in saved text box content in Chrome

    Hi DusanM,
     
    Version 6.3 upgrade to version 6.6 is free.
     
    Latest version downloads http://cutesoft.net/downloads/folders/21904/download.aspx
     
    Regards,
     
    ken
View as RSS news feed in XML