paste from word icon

Last post 10-14-2010, 4:32 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  10-14-2010, 2:07 PM 64434

    paste from word icon

    I am having trouble understand exactly what the "paste from ms word" icon does. I've been looking around the forum and cutesoft site but I still don't have a good understand, other than that it cleans up html code. In an attempt to find out for myself (using the demo editor) I created the following in a word document:

    Testing1

    Testing2

    Then, I tried pasting it into the cute editor withOUT the paste form word icon and it generated the following html:

    <div> <!--[endif]-->
    <p><em><u><span style="font-size: 16pt; line-height: 115%; color: red;">Testing1</span></u></em></p>
    <p><strong><span style="background: none repeat scroll 0% 0% lime;">Testing2</span></strong></p>
    </div>

     Then, I tried pasting it into the cute editor using the paste from word icon and it generated the following html:

    <p><em><u><span style="font-size: 16pt; line-height: 115%; color: red;">Testing1</span></u></em></p>
    <p><strong><span style="background: none repeat scroll 0% 0% lime;">Testing2</span></strong></p>

    This html is the same except from the div tags. Please help me better understand this icon. I would appreciate a good example of some text to create in word and then paste from word where the editor makes some obvious changes to the html.  thanks!
     
  •  10-14-2010, 4:32 PM 64437 in reply to 64434

    Re: paste from word icon

    When text is pasted from Microsoft Word a lot of unnecessary word specific markup is carried across. The Paste from Word function solves this by removing word markup before pasting the text into your page.
     
    However the above examle provided is clean html code, even it's from Word, so Paste from Word function will not change your code.

    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