Dealing with Content from Microsoft Office

Even those who have been using WordPress for a while might have overlooked the handy Paste from Word button on the second row of the Visual editor's toolbar. If your Visual editor's toolbar has just one row of buttons, press the one labeled Show/Hide Kitchen Sink. In the second row, you'll see a clipboard with the Word logo on it. Press this button, and you'll get a pop-up screen where you can paste the contents of your Word file (see Figure 4-4). It works well with Excel tables, too, and even does a decent job with text copied from Adobe PDF documents.

Figure 4-4. The Paste from Word tool

Press Insert, and your post now contains the cleaned-up contents of your Word file. The editor will attempt to retain your formatting, and it will translate headings from Word's style menu into proper HTML headings. It will also remove the Word-specific markup that will clutter your document if you paste it into the editor without using this tool, such as extraneous <div> tags, MsoNormal classes, inline styles, and smart tags.

■ Tip: If Paste from Word is not as thorough as you'd like, save your Word document as HTML, then run the resulting source code through the cleanup tool at before pasting it into your post's HTML view.

Was this article helpful?

0 0

Post a comment