Forums

[resolved] Why we need”Paste from Word” and “Past as Plain Text buttons on TinyMCE editor? (22 posts)

  1. dogante
    Member
    Posted 2 years ago #

    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.

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Pasting from Word can really jack up a layout...it carries over formatting and junk

  3. dogante
    Member
    Posted 2 years ago #

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

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    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

  5. dogante
    Member
    Posted 2 years ago #

    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.

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    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

  7. dogante
    Member
    Posted 2 years ago #

    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.

  8. henkholland
    Member
    Posted 2 years ago #

    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.

  9. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

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

  10. dogante
    Member
    Posted 2 years ago #

    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.

  11. dogante
    Member
    Posted 2 years ago #

    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.

  12. henkholland
    Member
    Posted 2 years ago #

    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.

  13. Miklos
    Member
    Posted 2 years ago #

    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.

  14. dogante
    Member
    Posted 2 years ago #

    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 ?

  15. dogante
    Member
    Posted 2 years ago #

    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?

  16. henkholland
    Member
    Posted 2 years ago #

    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.

  17. dogante
    Member
    Posted 2 years ago #

    henkholland
    Thank you for your response.

    >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.
    May be my confusion is coming from difference between my WordPress(2.8.5)'s behavior and your WordPress(2.9.1)'s behavior.

    In my WordPress(2.8.5), "both" a direct paste in the text area of TinyMCE editor and a paste through "Paste from Word" button retain the bold/strong tag from Word document.

    That is why I am saying I do not understand difference between a direct paste in the text area and a paste through "Paste from Word" button.

    >Still. I never do a direct paste from Word because it also pastes other >unwanted Word stuff from documents with more special makeup.
    I will keep in mind this.

  18. Mark / t31os
    Moderator
    Posted 2 years ago #

    It really depends what's in your document, for basic stuff, pasting into the textarea will seem(and usually be) no different then pasting using the "Paste from Word" button...

    Older versions of Word and more complex documents will carry junk across in a standard copy > paste situation, but not every situation, it's just a whole lot easier if everyone follows the same procedure of using the "Paste from Word" button, so as to avoid the need to repeatedly explain to users why they should NOT just CTRL+C , CTRL+V, etc..

    When you're thinking in terms of writing or creating something that needs to adhere to any kind of standard on the web, the last place you should be looking is at any program with the name Microsoft on it imo... (although i appreciate it's simplicity for alot of people)..

  19. dogante
    Member
    Posted 2 years ago #

    t31os_
    Thank you for your response.

    All right. So the conclusion is that , for basic stuff, pasting directly into the text area of TinyMCE editor will seem(and usually be) no different from pasting using the "Paste from Word" button.

    However, it is "better" to use the "Paste from Word" button, when you past document from MS Word to TinyMCE editor in WordPress in order to avoid carrying over junk code from MS Word.

    Thank you everybody who gave me comment here.

  20. pjarone
    Member
    Posted 2 years ago #

    Is there a way to input content into a page without using the tiny editor which is very hard to use. I can create html code and paste it in but that doesnt help my end user who has no knowledge of html.

    Thought I could use the paste from word to preserve the word formatting and transfer it to wordpress but that option actually strips the word formatting so that doesnt help.

    looking for a way to get formatted text into a wordpress page without having to use the wordpress page editor and without reverting to using html?

  21. Mark / t31os
    Moderator
    Posted 2 years ago #

    WordPress pages (and webpages in general) are rendered in HTML, you can't just take Word formatted code and display it using that formatting.

    If your content is intended for the web, then Word is *not* the application to be writing your articles in.

    Does Word offer a save as HTML option? If so, maybe that might be an option to consider, though i'd not like to speculate about the quality of the output HTML from Word, it's just a suggestion.

  22. mhatch
    Member
    Posted 1 year ago #

    I'm using WP 3.0. Our web developers told us to use Microsoft Notepad instead of WP text editor/paste and WP Word editor/paste b/c even the WP editor tools might preserve old formatting. Is this true? So far it's a pain to use Notepad.

    When I copy and paste text from Notepad the plain text appears in a small font (formatthen right below it, the same text appears again but in slightly bigger font (the same font as WP "paragraph" formatting for WP).

    I have to delete 2nd version of the text (the bigger font), but then I notice that the 1st version needs to be in "paragraph" format (My assumption is that it must be "paragraph" so that it translate to my website CSS. Is this correct?). When I change the text it increases to the same size as the 2nd version of the text I'd just deleted. So what's the point of using Notepad, I say.

    Main question: can I rely on WP text paste to remove all outside formatting?

Topic Closed

This topic has been closed to new replies.

About this Topic