Paste from Notepad and Browser variances

  •  04-05-2012, 8:25 AM

    Paste from Notepad and Browser variances

    When pasting information in from Notepad, the editor reacts differently based on browser.  For example.

    1. Firefox enters a <div> at the very beginning and a </div> at the very end of the text; in between each paragraph, it enters <br /><br /> to create the paragraphs.
     

    2. Chrome enters a <div> at the beginning of each paragraph and a </div> at the end of each paragraph; it also enters <div></div> in between paragraphs.

     

    3. IE9 doesn't save the text at all UNLESS you switch between HTML and Normal version before submitting the form the editor is embedded in. That is, after you paste, you can see the text, but  when you submit the form (not the save in the editor, rather .net form), the text disappears--nothing's there.   however, if you paste into normal or HTML mode, and then toggle to the other mode, and then submit the form, it does accept the content. This is also true for updating existing content in the editor ... switching between normal and html is necessary for the edited version to be submitted and retained.  Are there problems with IE 9 in general, or is the latest version of CuteEditor necessary to resolve this problem in IE9?

     
    Is it possible to have all browses work the same when pasting in from Notepad, using one of the available properties of the editor, like BreakElement ... or other?  I am currently using breakelement, and it works when entering content manually, but it works differently for each browser when pasting from Notepad, as mentioned above.  This is the instance:
     
    <CE:Editor id="cntBodyTextBox" BreakElement="P" ConvertHTMLTagstoLowercase="true" ShowPreviewMode="false"  EditorWysiwygModeCss="/cms/editor.css" AutoConfigure="Minimal" Text='<%# Bind("cntBody") %>' Width="98%" runat="server" EnableStripScriptTags="false" EnableStripIframeTags="false" EnableStripStyleTagsCodeInjection="false"></CE:Editor> 
View Complete Thread