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

Paste Ordered List from Word

1 Answer 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 20 Jan 2009, 07:53 PM
How come when I paste a list from Word, it's imported into the editor using <p> tags?  I want to paste it in as an ordered/unordered list.  Is there a way for me to do this.

Thank You!

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Jan 2009, 03:41 PM
Hello Shane,

I tried the following scenarios:

1) create a list from word and paste it in the editor - the result was <span> tags instead of <li> tags

2) create a list in the editor, paste it into word, then copy it from word and paste it in the editor - the result was <li> tags

Note that I was using Word 2007, but I do not think that there will be a difference if you have an older version.

The problem is that a MS Word document is not an HTML document, so when you copy a list created in Word, it does not use the HTML tags for lists - UL and LI. However, when you paste a list into Word from an html document (like the editor), then this list will be treated as HTML and should remain this way if you paste it back into an HTML document.

Unfortunately, we cannot do anything to change this, since the content is formatted by the Word application and the editor sees only the resulting HTML, not the original content.

All the best,
Rumen
the Telerik team

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