WordPress.org

Ready to get started?Download WordPress

Forums

Unable to paste rich text in WP 3.9 (27 posts)

  1. vesica
    Member
    Posted 3 months ago #

    Hi, My client called me in tears today because she can no longer paste from Word with her formatting. I know doing so is a no-no, but I have not been able to help her to be comfortable writing in WordPress, so she has been pasting to the tinyMCE "W" clipboard to create her posts and preserve her formatting created in Word. Which of course is gone now.

    I thought the Ultimate TinyMCE plugin could be interfering, so I removed it completely and did not see any change in the TinyMCE behavior.

    I was able to reproduce the problem in Firefox, although no errors showed up in the console. When I paste in Safari, both regular links and phone links transfer fine, in Chrome, only the regular links come across, not the phone number links. In all of them it is impossible to change the color of a <hr> without knowing how in html. And of course the font and font size options have been removed with the plugin.

    What can we do to help her without causing her to lose the productivity she has become accustomed to?

  2. bemdesign
    Member
    Posted 3 months ago #

    WordPress 3.9 updated the visual editor (tinyMCE). In practical terms this means the editor no longer supports some previous functionality the visual editor - they were bad from web standards and best practices point of view allowing inline CSS styling. Also old plugins and themes that are not up-to-date code wise may have issues with the new visual editor.

    Now for the good news - the new visual editor supports copy and paste straight from a Word document. No special button needed.

    As to the most fundamental question of how to help your clients move on with the new visual editor: consider writing a plugin that adds in the styles "needed" by your clients. See https://codex.wordpress.org/TinyMCE#Customize_TinyMCE_with_Filters for how to do this.

  3. vesica
    Member
    Posted 3 months ago #

    Yes, I understand that it's the update that changed the TinyMCE and copy/paste functionality in the visual editor. This is the problem - a regular copy/paste from Word is not working in the visual editor. If it were, she would be delighted! In Firefox it pastes plain text only, leaving behind links and styling (in Safari the links do come across, but no styling). If she could copy/paste from other posts into new ones or from Word to WordPress, she would be happy, but I can't figure out what to do. I'll look for another plugin to help her with the things the old and now incompatible plugin did for her so comfortably but need help with figuring out why we can only paste plain text in the visual editor.

    [Moderator Note: No bumping, thank you.]

  4. sbb
    Member
    Posted 3 months ago #

    I am having the similar problem as I write in MS-Word (and have many older MS-Word docs I'd like to upload). I used to paste into WordPress with few problems -- even had luck with tables created in Word. Pasting with tinyMCE advanced is OK, but seems there is more cleanup than before. Also basic editing functions like font size are gone. Any plug-ins that can restore some of this functionality?

    I've tried the new Table function in WordPress, but it is very limited. I tried TablePress, but find it unwieldy for the types of tables I make.

    When you click on the new "Paste to Word" icon in the editor, a dialog opens and reads as follow: "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off. If you’re looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically"

    Is there really a way to "toggle this option off"? Can't seem to find it. Thanks for any suggestions.

  5. designsimply
    Member
    Posted 2 months ago #

    What can we do to help her without causing her to lose the productivity she has become accustomed to?

    I haven't tried it with 3.9, but I've heard of Microsoft Word users loving Windows Live Writer—an offline blogging tool you can connect to WordPress—so it might be something worth checking into:
    http://www.microsoft.com/en-us/download/details.aspx?id=8621

  6. autoinformed
    Member
    Posted 2 months ago #

    I have two problems, at least, with 3.9 running 2010. I can't figure out how to get the rich text paste button back or toggle what is now plain text off to get back to pasting Word, which includes links to other posts.

    Second issue is editing screen. I can no longer scroll in side it without losing a the editing buttons on top. There is also, no way I can find to adjust the size of the text box, and I now have a very large amount of white space - two or more screen's worth - before I can get to the other posting functions - key word, tags, description, save draft et cetera.

    I have cleared the Firefox cache multiple times re-downloaded 3.9 several times, all to no avail?

  7. Andrzej
    Member
    Posted 2 months ago #

    I can confirm that copy/paste from MS Word (2007) no longer works. All/most formatting is lost during paste operation. However, copy/paste from a .doc that has been opened with LibreOffice DOES work, all formatting is retained properly.

    My client happens to use MS Word for publishing some pages. Suggesting the LibreOffice workaround is not a viable solution.

  8. fidlerten
    Member
    Posted 2 months ago #

    I have been copying/pasting from Microsoft Word for a long time now, as I use Microsoft Word to edit my blogs. After reading this, I still do not understand why I cannot continue to copy/paste from Microsoft Word as I always have.

    Why suddenly, must I have to find a new way to copy and paste my work. Updates are suppose to be helpful, not a step backwards. This just angers me to no end. Now I suppose I need to take a full course in HTML just so I can post in WordPress. Whose idea was this anyway? Didn't they have anything better to do with their time than making it more difficult for users?

  9. kmessinger
    Volunteer Moderator
    Posted 2 months ago #

    Copy/paste from Word 2010 works fine for me.

    @fidlerten Can you post Word text you are having a problem with at pastebin.com?

    And for all
    Have you tried:

    • flushing any caching plugins you might be running, as well as server and/or browser caches.
    • deactivating all plugins (yes, all) to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). If you can’t get into your admin dashboard, try resetting the plugins folder by FTP or PhpMyAdmin (read ”How to deactivate all plugins when you can’t log in to wp-admin” if you need help). Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old
    • switching to the Twenty Fourteen theme to rule out any theme-specific problems. If you can’t log in to change themes, you can remove the theme folders via FTP so the only one is twentyfourteen. That will force your site to use it.
    • manually upgrading. When all else fails, download a fresh copy of the latest.zip file (top right on this page) to your computer, and use that to copy up. You may need to delete the wp-admin and wp-includes folders on your server. Read the Manual Update directions first.
  10. jt70
    Member
    Posted 2 months ago #

    I am one of those who writes in word and then imports as well, and have been using the paste from word function in tinyMCE advanced for a number of years.

    The 3.9 paste from word functionality does seem to work, to a degree. So far, I haven't dived too deeply into the functions check, but it does seem to do lists and italics, and put in links, but it leaves off the paragraph tags in the html. Without knowing all the inner workings of WordPress, I am not sure if that is a problem. It seems to display correctly when published (the para tags show up in the source code). If it renders properly, I am happy, but I am not sure if this will create an unforeseen problem (i.e. with excerpts, lists, etc.) I just write a lot and cringe at the though of having to go manually enter loads of <p> tags.

    It also replaces straight quotes with the codes for curly quotes.

    So, my questions...
    1) Is what I am observing the expected behavior, or is this something unique to my configuration?
    2) If it is not unique to me, is it considered a problem? And if os, is there a fix on the way or a recommended workaround?

    Thanks,
    Jeff H

  11. sbb
    Member
    Posted 2 months ago #

    Jeff,

    You are having much better luck than me, so whatever you're doing, keep doing it. If I paste from Word into WordPress 3.9, I lose pretty much all formatting. I especially miss the ability to paste tables from Word and have not found a good replacement. I've tried the TablePress plugin a bit, but so far don't find it that useful for my type of content. BTW, what version of Word are you using?

    A few people on the this forum suggested pasting into WindowsLive, which then posts to WordPress once you configure WindowsLive. This works well for most formatting, but not for tables.

    Apparently the programmers who do WordPress development do not like the code that comes along with MS Word copy/pasting. For non-technical guys like me, however, composing in Word and then pasting into WordPress was a breeze and never caused any problems on my site, which is pretty complex with lots of plugs-ins and customization (done by someone way more web savvy than I).

  12. Andrzej
    Member
    Posted 2 months ago #

    FYI. After a bit more digging around, this appears to be an issue with the core TinyMCE module and not WP 3.9. I have tried the TinyMCE online demo and all styling from Word 2007, 2010 and 2013 copy/paste is stripped. Copy/paste from LibreOffice works just fine.

    I also found that the WP core team is aware of this issue and solutions are being pursued.

  13. HazelFrance
    Member
    Posted 2 months ago #

    Copying and pasting from MS Word worked fine until I updated to WP 3.9. Is there any way I can go back to the previous version? (I installed TinyMCE to try and solve the problem, but it doesn't change the font, despite its claim.)

    I'm inclined to say to the WP team "if it ain't broke, don't fix it"! Can we get an answer from them on this thread?

  14. autoinformed
    Member
    Posted 2 months ago #

    This is a giant cock up, and is causing me no end of grief - lost productivity with multiple steps just to get links into posts. Hooey. And the WordPress true believers - keep saying that this was a wonderful UPGRADE. It is a complete setback. Anybody home at WP? They have certainly been non-responsive thus far

  15. ErkV
    Member
    Posted 2 months ago #

    Hi, in my theme I could enable the wpautop function. This solved the problem of pasting rich text for my site.

  16. michiamano
    Member
    Posted 2 months ago #

    Here's another new problem with pasting rich text. Client reports that now when pasting from Word, single word paragraphs are deleted altogether (this is a fiction author), words are randomly deleted, spaces between words are deleted. Often they don't survive the paste.

    I replicated the single-word paragraph deletion on a test blog set to the 2014 theme running no plugins.

    Mysteriously, leaving the punctuation off keeps this from happening.

    I have always gotten the feeling that the otherwise wonderful support folks here don't take Word-related problems very seriously. Many of us have clients who compose in Word and count on the paste function working reliably. Yes, they could compose in WP directly but, no, that just ain't gonna happen.

    This client has been doing her blog this way since 2008 and this is the first time we've had problems with text getting deleted altogether.

  17. wajcgs
    Member
    Posted 2 months ago #

    ErkV wrote "Hi, in my theme I could enable the wpautop function. This solved the problem of pasting rich text for my site."

    Question: How does one enable wpautop function? Where is it found? How is it enabled?

    Thanks

  18. wajcgs
    Member
    Posted 2 months ago #

    Follow up to previous message:
    Pop up says: "if you're looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically" but gives no instruction on how to "try" to turn option off. Please advise.

  19. wajcgs
    Member
    Posted 2 months ago #

    Found the answer at http://en.support.wordpress.com/visual-editor/#pasting-text

    Suggestion: make the On/Off toggle condition OBVIOUS.It is currently too subtle.

    Thank you.

  20. sbb
    Member
    Posted 2 months ago #

    I tried pasting from Word (onto a page, not a post) with the paste-as-text option on and off and seem to get the same results -- most formatting is lost. In the previous version of WordPress, I could even paste tables from Word and they would look pretty good. It would be great to get this functionality back. The WordPress.org developers seem to think that MS Word coding will cause problems when pasted into WordPress. My site has over 100 pages of content pasted from Word and not a single problem. If anyone is listening at WordPress.org, please bring the "Paste from Word" function back as an option for those who depend on it. Most WordPress users, like myself, are content creators (formerly called "writers")and not programmers.

  21. autoinformed
    Member
    Posted 2 months ago #

    Nobody at WordPress is listening in my view - formerly ink-stained wretch with glue pot and yellow copy paper and now "content creator." <grin>

  22. wajcgs
    Member
    Posted 2 months ago #

    Here is the solution: Found the answer at http://en.support.wordpress.com/visual-editor/#pasting-text
    The new system works well. Calm down and give it a try.

  23. programmin
    Member
    Posted 2 months ago #

    For debugging purposes, could someone with this problem please post an example Word document of content that doesn't copy-paste into WP 3.9 properly? Noting what version of Word, and what browser and browser version was causing this problem, would be great as well. Otherwise I doubt the WordPress developers & community have enough to go on to find and fix this bug.

    I tested copy-paste from word the other day, and didn't see any problems whatsoever, except slightly different font.

  24. sbb
    Member
    Posted 2 months ago #

    In response to progammim, here is a test page copy/pasted from MS Word (without selecting the "Paste as Text" button):

    http://buildingadvisor.com/wordpress-paste_from_word-test1/

    [Moderator Note: Please ensure that you are embedding links correctly in your posts. Link corrected.]

    Password to view page: bac_test

    I'm using MS-Word 2010 on Win 7 64-bit OS. Browser is Firefox 29.0.1. Also have tried Chrome 35.0.1916.114 m with same results. The posted page includes bold heads, hanging bullets, and two tables -- one with a visible grid, one with no grid. I'd be happy to share the original Word doc, but not sure how to do that on this forum. Any suggestions?

    Thanks for following up on this.

  25. HazelFrance
    Member
    Posted 2 months ago #

    Also in response to programmin's suggestion, please compare http://s464925280.onlinehome.fr/?page_id=608 (before updating to WordPress 3.9) with http://s464925280.onlinehome.fr/?page_id=3018 (after updating).

    Both texts were transferred directly from Word 2007 rich text documents and appear the same on Firefox 29.0.1 and Internet Explorer 11. It makes no difference if the paste as text button is on or off.

    The solution that works for a non html savvy user like me is to copy a rich text already posted, paste it on a new page and overwrite it: http://s464925280.onlinehome.fr/?page_id=2935. Takes an age, but it works, with a few tweaks...

  26. kmessinger
    Volunteer Moderator
    Posted 2 months ago #

    Try pasting the word text into pastebin.com

    An observation. The formatted version has 4928 css errors. The non-formatted version has 92 css errors.

  27. programmin
    Member
    Posted 2 months ago #

    @sbb If that page you linked is missing deleted paragraphs or content or formatting from the original Word document, we can't see what is missing. It's just plain normal HTML. Could you please upload and link the original word document file on that page?

    @HazelFrance How much of the formatted page was pasted from Word? I see the formatted version has gobs of invalid HTML, which causes the page to load much slower than the other, but the images look like they were added by WordPress?

    If the only problem is MCE4 is just not transferring formatting that is within those odd proprietary word-xml-tags, that's probably an enhancement that could be overridden by a plugin in the future?

    There's one other thing you could try - I was noticing a couple annoying bugs that were fixed by manually replacing the TinyMCE version WordPress is using. (There are currently dozens of bugs fixed in versions newer than the wordpress' TinyMCE 4.0.21, as you can see here: http://www.tinymce.com/develop/changelog/?type=tinymce ) If one of these bugs is causing paragraphs to get deleted, these steps may fix it:

    First go into your /wp-includes/js/tinymce/ folder through FTP

    Next go to here and download the first link, extract the tinymce.min.js

    Copy that JS over the wordpress file. Now you can see the .26 version from the F12 console, by entering "tinymce.minorVersion"

    If it doesn't work or is worse, clicking "reinstall wordpress" should bring back current wordpress 3.9 and its older TinyMCE editor.

Reply

You must log in to post.

About this Topic