WordPress Problems with Pasted MS Word Content

One thing that you quickly learn when maintaining your own WordPress blog or website is that you can’t copy and paste content directly from Microsoft Word documents without any problems. When you do, for example, you’ll find one of two things:

  1. Your content looks strange and appears in a different style from other text on your website.
  2. Your content does not even appear in Internet Explorer.

Why copying from MS Word causes formatting problems

When you cut and paste, MS Word tries to preserve the style information contained in the original document. And this style information causes problems because it (1) does not match the styles for the rest of your website and (2) it often contains information that interferes with how Internet Explorer should display the web page.

Fortunately, this problem has been well-documented and there are a few easy fixes.

Solution 1: Use the Paste from Word Button

All recent versions of WordPress (and its TinyMCE WYSIWYG editor) have a little button in the editing panel which enables you to remove the excess formatting. See the image below:

WordPress Paste From Word  

If you are using Dean’s FCKEditor plugin, see the image below:

FCKeditor Paste from Word  

You will also notice another button on the left of the Paste From Word button which enables you to Paste as Plain Text. This is another equally useful option for removing formatting.

Solution 2: Use an Alternate Editor

There are several offline blog and text editors which can serve as a great replacement for MS Word. Some include Windows Live Writer, Blogo, WordPad, and Notepad. These simpler editors are great because they add no additional formatting of their own.

Other Potential Problems

If you are the sole editor of your blog, it is easy enough for you to use the solutions above. But if there are multiple authors on your blog, or if you’ve created a blog for a client, you’ll inevitably run into this problem over and over again. So what can you do to FORCE all users to copy and paste using the above method? Not much…

But there is a super useful plugin by Dave at This Much I Know, which basically stops users from pasting content directly and instead presents them with a paste window. For advanced users, this plugin is highly customizable by editing the source code directly and changing some of the TinyMCE initialization settings.

If you know of any other similar plugins or filters that remove MS Word formatting, please leave a comment.

Tags: , , , , ,

11 Responses to “WordPress Problems with Pasted MS Word Content”

Trackbacks

Trackback URL for this entry:
http://www.velvetblues.com/web-development-blog/wordpress-problems-pasted-ms-word-content/trackback/

Leave a Reply

CommentLuv Enabled

Want us to work on your project?

Contact us today for a quote. Click here to submit details regarding your project.

If you are making a general inquiry, send an email to info@velvetblues.com