• A minor but annoying glitch: if you copy text from a Google Drive document and paste it to the visual editor in WordPress, the last paragraph (or the entire paragraph if only 1 is copied) is formatted in bold font (tagged with <strong></strong> in the HTML).

    The problem seems to be with WordPress, not Google as text pasted into e.g. Word doesn’t doesn’t have the problem. Does not seem to be the browser because it happens on different browsers (Chrome and Firefox, Mac. Have not tried with other browsers or OS.)

    Our company uses Google Drive docs to collaborate on blogs, then we copy the final approved text into WordPress. Longer articles are often copied section by section, so we run into this glitch frequently. If it is in fact a WordPress bug, nice if it could be fixed sometime.

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    That is normal, and it’s best to never paste from a word processor like Google Docs and Microsoft Word.

    WordPress is an HTML-based publishing system, but word processors include tons of propriety formatting to help you make the page look nice for printing, formatting which WordPress generally can’t (and would never be able to) understand.

    If you want to compose a post outside of WordPress, it’s best to use a plain text editor: https://codex.www.ads-software.com/Editing_Files#Text_Editors

    Of course, you can still use Google Docs, just make sure that you paste into the Text editor tab (not the Visual editor tab) and understand that you may have to do some cleanup work before publishing it in WordPress.

Viewing 1 replies (of 1 total)
  • The topic ‘Copy-paste from Google docs misformats text’ is closed to new replies.