Incorrect formatting when pasting from Word

Last post 02-26-2013, 2:08 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  02-01-2013, 11:57 AM 76776

    Incorrect formatting when pasting from Word

    1) Create a basic ASP.Net (I am using .Net 2.0) page containing the editor:

     

     

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="Common_test" %>

    <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">

    <title></title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

    <RTE:Editor id="Editor1" Text="Type here" runat="server" />

    </div>

    </form>

    </body>

    </html>

     

          2) Open Word (I am using Office 2010).

          3) Choose the "No Spacing" paragraph formatting option.

          4) Enter 2 (or more) lines of text, with carriage returns at the end of the lines.

          5) Copy the text.

          6) Navigate to your ASPX page

          7) Paste. Choose OK to clean the code.

    The pasted text then includes a blank line in between each line of text.

     

    Dan

  •  02-11-2013, 2:29 PM 76836 in reply to 76776

    Re: Incorrect formatting when pasting from Word

    Dan,

     

    Can you reproduce this issue in the following example?

     

    http://richtexteditor.com/demo/

     

    If not, please download the latest build. 


    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-25-2013, 10:27 AM 76913 in reply to 76836

    Re: Incorrect formatting when pasting from Word

    Hi Adam,

     

    Yes I can reproduce it at http://richtexteditor.com/demo.

     

    Regards

     

    Dan

  •  02-26-2013, 2:08 PM 76924 in reply to 76913

    Re: Incorrect formatting when pasting from Word

    Hi DanielBarratt,

     

    I can not reproduce this issue. Below is the settings of my word 2010.

     

     

     

    Can you send meyour test word document? And what browser/version you are testing?

     

    [email protected]

     

    Regards,

     

    Ken 

View as RSS news feed in XML