EditorOnPaste="PasteWord" differences from your sample

  •  07-10-2008, 10:53 PM

    EditorOnPaste="PasteWord" differences from your sample

    Hi

    I am referring to another post, (which as usual on this forum left me answer less), check out  http://cutesoft.net/forums/thread/41981.aspx. I have an issue with EditorOnPaste="PasteWord" also, where the input differs from your sample page, http://cutesoft.net/example/editor-onpaste.aspx where you sent the other that user. Your sample demonstrates stripping word characters from pasted in Word text and from what I see it works verily well. However in my experience, the result is different.
     
    Sample Text:

    This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc.

    1. Test1
    2. Test2
    3. Test3

    Html from your sample, (I get this by selecting the html button)
     
    <p><span style="font-size: 10pt; font-family: Arial;">This si a <strong>tesat</strong> doc. This si a <em>tesat</em> doc. This si <u>a tesat doc. This si a tesat doc</u>. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. </span></p>
    <p>&nbsp;</p>
    <ol style="margin-top: 0in;" start="1" type="1">
         <li><span style="font-size: 10pt; font-family: Arial;">Test1</span></li>
         <li><strong><span style="font-size: 10pt; font-family: Arial;">Test2</span></strong></li>
         <li><span style="font-size: 10pt; font-family: Arial;">Test3</span></li>
    </ol>
     
    Html on my page:
     
    <p style="margin: 0in 0in 0pt"><span style="font-size: 10pt; font-family: Arial">This si a <strong>tesat</strong> doc. This si a <em>tesat</em> doc. This si <u>a tesat doc. This si a tesat doc</u>. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. This si a tesat doc. </span></p>
    <p style="margin: 0in 0in 0pt">&nbsp;</p>
    <ol style="margin-top: 0in" type="1">
        <li style="margin: 0in 0in 0pt"><span style="font-size: 10pt; font-family: Arial">Test1</span></li>
        <li style="margin: 0in 0in 0pt"><strong><span style="font-size: 10pt; font-family: Arial">Test2</span></strong></li>
        <li style="margin: 0in 0in 0pt"><span style="font-size: 10pt; font-family: Arial">Test3</span></li>
    </ol>
     
    Could you please tell me whats causing the differences, mainly the "<p style="margin: 0in 0in 0pt">" in this example but many other differences in other examples. I want to be able to strip out all the word stuff on paste not just inconsistent bits and pieces. 
     
    I am using 6.1, with IE 7
     
    Thanks
View Complete Thread