issue after pasting tables from MS word

4 posts, 0 answers
  1. Ben
    Ben avatar
    4 posts
    Member since:
    Nov 2011

    Posted 01 Nov 2011 Link to this post

    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?
  2. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 03 Nov 2011 Link to this post

    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
  3. Ben
    Ben avatar
    4 posts
    Member since:
    Nov 2011

    Posted 03 Nov 2011 Link to this post

    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?
  4. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 08 Nov 2011 Link to this post

    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
Back to Top