This is a migrated thread and some comments may be shown as answers.

Paste from Word nests paragraphs

4 Answers 99 Views
Editor
This is a migrated thread and some comments may be shown as answers.
QualiWareUA
Top achievements
Rank 1
QualiWareUA asked on 22 Jul 2008, 12:21 PM
When I paste text copied from MS Word using "Paste from Word" button I get nested bulleted list items despite the fact that in MS Word the list is not nested.
I can be reproduced using http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/Default/DefaultCS.aspx demo. Just create the following document in MS Word 2007:

List:
  • item1;
  • item2;
Then copy the text and paste it using "Paste from Word" button, switch to HTML mode and inspect the content (I've manually removed extra formatting):
<p> 
  <span>List:</span> 
</p> 
<p> 
  <span>Item 1</span> 
    <p> 
      <span>Item 2</span> 
    </p> 
</p> 
 

If I paste the same text preserving Word formatting - everything is ok:
<p><span>List:</span></p>  
<p><span>item1;</span></p>  
<p><span>item2;</span></p

Did anyone experience this problem or have any ideas how to fix it?

4 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 22 Jul 2008, 02:16 PM
Hello Valeriy,

Thank you for reporting this problem. It is logged in our bug tracking system and we will try to fix it in one of the future versions of RadEditor.

I updated your Telerik points for your bug report.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Eric
Top achievements
Rank 1
answered on 29 Jan 2009, 08:07 PM
Has this been fixed.  I am experiencing the same issues with a numbered list.  The list and all text afterwards is nested.  If I paste and keep the MS Word formating, then the list appears correctly.  This is a huge problem for us and I would appreciate any information on when this will be fixed if it hasn't been already.
0
Eric
Top achievements
Rank 1
answered on 29 Jan 2009, 08:55 PM
I was able to find what seems to be a solution.  I set the RadEditor's ContentFilters property to "None".  That fixed the problem of the nested paragraphs and list items.
0
Rumen
Telerik team
answered on 02 Feb 2009, 03:19 PM
Hi Eric,

I am glad that you have found a solution for the problem.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
QualiWareUA
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Eric
Top achievements
Rank 1
Share this question
or