EditorOnPaste questions

Last post 02-23-2010, 2:54 PM by Adam. 8 replies.
Sort Posts: Previous Next
  •  09-04-2009, 7:13 AM 55369

    EditorOnPaste questions

    Can more then 1 of the EditorOnPaste options be used at the same time?
     
    IE. I want PasteCleanHTML (When you pasting the html code into the editor, the empty tags, redundant nested tags and messy or unreadable HTML code are automatically cleaned up.) and PasteWord (When you pasting the content from Word into the editor, the non-required code that usually comes with pasting from Word are automatically cleaned up.) together.
     
    Why isn't  PasteText working properly?
     
    When I paste in text from a website and I enable PasteText it will all be on one line (while the option says it should still maintain paragraph marks). When I put it on PasteCleanHTML of PasteWord it does recognize the <p> elements ...
  •  09-04-2009, 1:54 PM 55382 in reply to 55369

    Re: EditorOnPaste questions

    rubendevries,
     
    You can use the buttons in the toolbar. However you can only have on EditorOnPaste option when using Ctrl+V.
     
    Can you try the following example?
     

    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-04-2010, 7:00 AM 58528 in reply to 55382

    Re: EditorOnPaste questions

    It still aint perfect across all browsers...
     
    I'm now using PasteText and in FireFox it will make it plaintext, dropping the P tags.
    In other browsers however PasteText seems to be working well!
     
    Please help me out here!
     
    (tests were done in your example link) and with a simple 3 line example from a word document!
  •  02-09-2010, 2:50 AM 58605 in reply to 58528

    Re: EditorOnPaste questions

    I have a bit more time to look through the different options and browser and give you a better bug report now so here it comes;
     
    PasteText
    When you paste text into the editor, all HTML formatting is stripped except for paragraph marks.
     ---
    This is the option I want (and I think many many other CuteEd users/distributors want). Other sites and text editors add a lot of thrash and we just want plain text with the <p> tags in tact to maintain line breaks where needed!
     
    Now here is a small recorded movie of me using your example site with PasteText in IE7, FF, Chrome and Safari:
    Results:
    - Safari and Chrome: leave A LOT of junk in place.
    - IE strips everything and uses <BR /> for the linebreaks (no <P>).
    - FF strips everything and just leaves you with plain text.
    Not a single browser gives the desired result!!
     
    The other options I've tried have the same issues with browsers acting different and always leaving a lot of junk HTML and CSS in the code!
     
    I also tried the ASP demo version and PasteText makes an even bigger mess out of it there but PasteCleanHTML works pretty nice in that version!
     
     
    Now you might think I'm just bitching about something stupid, but anyone buying your product to use it in an CMS system of their own and with any client who cares about how their site looks will have these problems and in the past I've seen the onPaste behavory of editors being the main reason why my previous employer switched from editors many times!
     
    I'd really love to hear weither or not this is something you guys are (or will be) working on, since atm I'm forced to process the HTML code after the editor has submitted it and make an atempt to strip it myself, however I don't have the time (or I'm not given the time) to completely fix this issue properly!
     
     
    Thanks in advance,
     
    Ruben de Vries
    Hoppinger Developer
     
  •  02-11-2010, 3:24 PM 58673 in reply to 58605

    Re: EditorOnPaste questions

    Dear rubendevries,
     
    We have improved this functionality, detail information are as follows:
     
    The sample text in microsoft word is:

    Test Line 1

    Test Line 2

    Test Line 3
    We copied it in microsoft word and paste to CuteEditor for .NET,CuteEditor for ASP, and CuteEditor for PHP,  the results are as follows:
     
    1. IE 8.0.6
    <p> Test Line 1<br />
    Test Line 2<br />
    Test Line 3</p>
     
    2.FireFox 3.6
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3 
     
    3. Google Chrome 4.0.249.78 (36714)
    Test Line1<br/>
    Test Line2<br/>
    Test Line3
     
    4.Safari 4.0.3
    Test Line1<br/>
    Test Line2<br/>
    Test Line3

     
    1. IE 8.0.6
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3

     
    2.FireFox 3.6
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3
     
    3. Google Chrome 4.0.249.78 (36714)
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3
     
    4. Safari 4.0.3 
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3 
    1. IE 8.0.6
    <p> Test Line 1<br />
    Test Line 2<br />
    Test Line 3</p>

     
    2.FireFox 3.6
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3
     
    3. Google Chrome 4.0.249.78 (36714)
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3
     
    4. Safari 4.0.3 
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3 
     Conclusion:
     
     CuteEditor for PHP and CuteEditor for ASP, IE browser, it will be: 
     <p> Test Line 1<br />
    Test Line 2<br />
    Test Line 3</p> 
    All other combination will return: 
    Test Line 1<br />
    Test Line 2<br />
    Test Line 3
     
     
    Regards,
    Eric
     
  •  02-15-2010, 1:59 AM 58696 in reply to 58673

    Re: EditorOnPaste questions

    Ok, nice that you guys are improving this feature!
     
    And it seems you're almost there, but not yet ...
     
    in FF 3.6 and Chrome (4.0.249.89) it does a pretty good job at converting it but instead of adding it as HTML it does a htmlentities on it, this being the result when I try it in your demo:
     
    <div><!--[if gte mso 9]><![endif]-->
    <![endif]-->

    <p class="MsoNormal">Test line 1</p>

    <p class="MsoNormal">Test line 2</p>

    <p class="MsoNormal">Test line 3</p>

    <p class="MsoNormal"><o:p>&nbsp;</o:p></p>

    </div>
     
  •  02-16-2010, 8:34 AM 58716 in reply to 58696

    Re: EditorOnPaste questions

    Dear rubendevries,
     
    Please visit http://phphtmledit.com/editoronpaste.php and tell us the detailed reproduce steps, I can not get your test result. BTW, which os are u using?
     
    Regards,
    Eric
  •  02-23-2010, 8:30 AM 58915 in reply to 58716

    Re: EditorOnPaste questions

    Ok it seems to be working a lot better now!

    Did you make another update to the paste functionalities recently :) ?
     
    I'll get somebody here to test it too and update our version of CuteEditor when satisfied!
     
    Thanks a lot for looking into this and providing such good support, keep up the good work!
  •  02-23-2010, 2:54 PM 58926 in reply to 58915

    Re: EditorOnPaste questions

    rubendevries:
    Ok it seems to be working a lot better now!

    Did you make another update to the paste functionalities recently :) ?
     
    I'll get somebody here to test it too and update our version of CuteEditor when satisfied!
     
    Thanks a lot for looking into this and providing such good support, keep up the good work!
     
    Yes, we updated the control recently.

    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

View as RSS news feed in XML