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

paste from Word, bullets problem

1 Answer 115 Views
Editor
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 03 Oct 2008, 09:44 AM
Hello,
When I paste from Word into the RadEditor sometimes bullets are converted to dots.
I use this StripFormattingPasteOptions: MSWordRemoveAll, Css, Font, Span

The content of ContentAreaCSSFile is:
----

body

{
font-family: News Gothic;
font-size: 9pt;
}

table

{
BORDER-RIGHT: #999999 1px dashed;
BORDER-BOTTOM: #999999 1px dashed;
}

table

td
{
PADDING: 1px;
BORDER-TOP: #999999 1px dashed;
BORDER-LEFT: #999999 1px dashed;}

table

th
{PADDING: 1px;
BORDER-TOP: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed;}

.RadEWrongWord


{
background: url('wave.gif') repeat-x left bottom; }

.diff_deleted

{color: red; text-decoration: line-through}

.diff_new

{background-color: #99FF00}
----

When I paste with the "Paste From Word" button (NO strip font) the bullets ars ok, but then the font might be wrong (we want News Gothic).
Please help, our users are complaining a lot about this.

Kind regards Barbara

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Oct 2008, 11:20 AM
Hello John,

I think that this is the expected behavior when you paste a list, which has been created in MS Word. I tried the following scenarios:

1) create a list from word and paste it in the editor - the result was <span> tags with . symbols 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

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. The regular expressions used by the StripFormattingPasteOptions just strips the MS Word specific tags, attributes and styles but they do not modify the inserted content.

Best regards,
Rumen
the Telerik team

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