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

issue after pasting tables from MS word

3 Answers 159 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 02 Nov 2011, 12:13 AM
every time I paste a table from MS word the formatting gets all screwed up.  either the width is too much or the font is wrong.  In one particular case, it was adding the <p class = "tlbBody"> to certain cells.  I have found no way to get rid of that using the edit buttons.  I can manually delete the <p class> statement but that is so much work; it would be easier to recreate the table from scratch.

I can paste in text that has a font is not included with Radeditor.  so how does that work? is the recommendation to only use the built in fonts that Radeditor has?  because if I ever accidently switch fonts I can no longer type in that font.

is there a preferred web browser to edit with?

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Nov 2011, 01:25 PM
Hello Ben,

How do you paste the Word table: do you use the Paste, Paste From Word or another button? Have you set the StripFormattingOptions property?

I will also need sample MS Word document and detailed steps how to reproduce the reported problems.

Let me provide you with details what is happening when pasting content from MS Word. The paste process is controlled entirely by the Operating System and by the browser. The editor is not allowed to interfere in this process much (of course there are some minor differences between browsers). Thus, with respect to pasting - the original MS Word formatting is not HTML. It is MS Word specific XML formatting. When this is exported to the clipboard, and is made available for paste, it "announces" what "paste flavors" it supports - and those would be MS Word, HTML, Plain text, RTF and so on.
When a client entity (such as the editor) wants to consume the content of the clipboard, it announces what paste formats it supports (and the editor - any editor - only supports plain text and HTML). So, MS Word converts the original MS Word to HTML, and this process is controlled entirely by MS Word, and not at all possible to interfere by the editor. The content pasted from Word and provided by the clipboard also differs under the different browsers and there could be differences how the tables and other elements look under the different browsers.

If the user does not strip the Word formatting, the pasted content will look similar to the original Word content. If the Word formatting (o:p tags, mso attributes and styles) are stripped the content could differently than the original one.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Ben
Top achievements
Rank 1
answered on 03 Nov 2011, 08:02 PM
1) I have tried pasting in the table using all the options.  it never pastes cleanly. I have tried stripping the format as wel.
2) how come i cannot drag the resize the columns? it is insanely difficult to have to go into the cell properties.
3) I cannot attach word doc... how do i do that?
4) the font always wants to default back to times new roman.  I select all and set to arial and after a few edits and saves I see text revert back to times new roman.  why?
0
Rumen
Telerik team
answered on 08 Nov 2011, 12:52 PM
Hello Ben,

1) Could you please record your test and RadEditor configuration in a video using a Jing or another tool and send it so that I can reproduce the problem?
2) You can resize tables only in IE and Firefox. The rich text editing engines of WebKit (Chrome and Safari) and Opera do not offer this ability and for this reason the only way to resize a table is using the RadEditor's Table Properties options and the Node Inspector Module.
3) You can attach only image attachments in the forums and zip and image attachments in the support ticketing system. To be able to open a support ticket you should have a valid license.
4) I am not aware of this problem and I am unable to reproduce it in the live demos of RadEditor.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Ben
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ben
Top achievements
Rank 1
Share this question
or