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
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.