Support » Fixing WordPress » Why we need”Paste from Word” and “Past as Plain Text buttons on TinyMCE editor?

  • Resolved Anonymous User 4963935

    (@anonymized-4963935)


    On TinyMCE editor, there is buttons ”Paste from Word” and “Past as Plain Text.” What are they used for? I can past text from Microsoft Word directly to the text area of TinyMCE editor without using ”Paste from Word” button. And the result of the post (or page ) seems to be the same as using the button. So, why we need these ”Paste from Word” and “Past as Plain Text” buttons? In what situation should we use them?

    Please let me know.

Viewing 15 replies - 1 through 15 (of 21 total)
  • Pasting from Word can really jack up a layout…it carries over formatting and junk

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    RVoodoo
    Thank you for your response.

    >Pasting from Word can really jack up a layout…it carries over
    >formatting and junk
    So, if we use ”Paste from Word” button when pasting from MS Word, is text we past from word to TinyMCE editor become “plain text” (with out MS Word’s formatting and junk)? Can ”Paste from Word” button clean up MS Word’s formatting and junk when pasting from MS Word to TinyMCE editor?

    Also, what about “Past as Plain Text button” on TinyMCE editor? In what situation should we use it? From your explanation, we use ”Paste from Word” button when we past from MS Word to text area of TinyMCE editor. And I think we can just past plain text to text area of TinyMCE editor without using the “Past as Plain Text button.” Then, I can not imagine any occasion when we use “Past as Plain Text button.”

    honestly….I’ve never looked into it too far, I’m not sure what situations apply to which buttons. Good question….hopefully someone can provide better insight (for me too)

    I’ve just seen folks paste from word and have their themes go haywire

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    RVoodoo

    >honestly….I’ve never looked into it too far, I’m not sure what
    >situations apply to which buttons.
    Thank you for giving me your opinion anyway.

    I will look forward somebody can answer this question.

    OK, cruising around the google mchine…I may have found the difference

    the paste from word button is word specific, stripping out word specific formatting

    Paste as plain text is when you copy paste from anywhere else, such as off the internet, it strips any erraneous formatting that may have been picked up.

    I’m not sure this is the total and complete use of these buttons, its what I found on google/these forums

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    RVoodoo
    Thank you for your response.

    I really appreciate, if you put rink or URL of the web pages you have found.

    Also, if somebody knows sure answer about this matter, please explain it here.

    I use the paste as plain text button for all other sources than Word, like, from: internet browser, my mailbox, an Acrobat Reader document etc. In short for all paste’s.

    You can see for yourself, just do a direct paste from Word in a new post and do not publish but switch to the html view in the editor. You see all the “mso.normal” etc stuff. Not what you want in a post.

    thanks for that answer! helps clear it up for me too!

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    henkholland
    Thank you for your response.

    >You can see for yourself, just do a direct paste from Word in a new post
    > and do not publish but switch to the html view in the editor. You see
    > all the “mso.normal” etc stuff.
    I typed some letters on MS Word. And saved it as .doc file. Then I pasted to TinyMCE editor in WordPress without using Paste from Word” and “Past as Plain Text” buttons. Without publishing, I switched to the html view in the editor. I saw just texts in the html view without any code. At this point, I do not see any problem pasting directly form MS Word to TinyMCE editor.

    If somebody knows sure answer about this matter, please explain it here.

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    I typed some letters on MS Word. Then I put some format, like Bold, on some of those letters. I pasted them to TinyMCE editor in WordPress without using “Paste from Word” or “Past as Plain Text” buttons. I switched to the html view in the editor. I saw [strong] tags on letters which I put Bold format on the MS Word. After that I pasted the same letter from MS Word to TinyMCE editor in WordPress USING “Paste from Word” button. I switched to the html view in the editor. I still saw [strong] tags on letters which I put Bold format on the MS Word. Therefore, at this point, I can not find any difference between using and not using “Paste from Word” button when pasting from MS Word to TinyMCE editor in WordPress.

    However, if I used ”Past as Plain Text” button when I pasted form MS Word to TinyMCE editor in WordPress, [strong] tags on letters in the html view in the TinyMCE editor disappeared. Therefor, I understand using ”Past as Plain Text” button can erase tags from letters you are pasting to the TinyMCE editor.

    If somebody knows sure answer about this matter, please explain it here.

    Now that’s funny. I did exactly the same in 2.9.1. and a direct paste did not retain the bold/strong but a paste through Paste from Word did. So this not harmfull code is retained in Paste from Word.

    So may be I stand corrected: if you want to keep your styling from a Word document (in 2.9.1) use Paste from Word.
    If you want plain text and style afterwards in WP, then use Paste as plain text.

    It may indeed be useful for some to preserve Word styles, if you format your entries in MS Word. This is what I do, and that allows me to control first indents, paragraph spacing etc., without having to specify each one manually, and preserve them when pasting in the blog, see e.g. here.

    In order to be able to do so in 2.9.1, one needs to modify a few parameters in the $initArray of file wp-admin/includes/post.php.

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    henkholland and Miklos
    Thank you for your response.

    >if you want to keep your styling from a Word document (in 2.9.1) use
    >Paste from Word.
    >If you want plain text and style afterwards in WP, then use Paste as
    > plain text.
    What henkholland says above is correct? I am sure henkholland’s explanation about “paste as plain text” button above is correct. However, I am not confident of henkholland’s explanation about “Paste from Word” button.

    I do not understand what Miklos want to explain. Does Miklos want to say henkholland’s explanation about “Paste from Word” button is basically correct (But, to use “Paste from Word” button as henkholland’s explanation in 2.9.1, one needs to modify a few parameters.)?

    Please somebody clarify.
    As henkholland’s explanation, is “Paste from Word” button for preserving style from a Word document ?

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    I do not understand (or am confused) difference between “direct pasting” to the text area of TinyMCE editor and using “Paste from Word” button.

    As I test, both ways have the same behavior. What do they differ?

    As said± I did exactly the same in 2.9.1. and a direct paste in the text area did not retain the bold/strong but a paste through Paste from Word did. So this not harmfull code is retained in Paste from Word.

    Still. I never do a direct paste from Word because it also pastes other unwanted Word stuff from documents with more special makeup.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Why we need”Paste from Word” and “Past as Plain Text buttons on TinyMCE editor?’ is closed to new replies.