I am testing blogging from Word 2007, so we can support users who wish to do so. Everything works fine, and as expected except the plugins that we use that add filters to the_content (eg wordpress-table-of-contents) do not process the posts from Word.
If you open the posts in WordPress & save everything works fine, even if you do not change anything, but we want to be able to avoid this.
For information, the site I’m most concerned about here is an MU site (running WP 3.0.1), but non-MU sites are affected in exactly the same way.
So is there a way to have these plugins process posts that come from Word that doesn’t involve interacting with the WordPress admin panel?
You could use TinyMCE Advanced, which has a ‘paste-from-word’ button that you can add to the editor. It doesn’t so much make Word posts useful, as make them ‘not Word’.
I’m not 100% sure, but I believe the
content_save_pre
filter runs for posts created via XML-RPC (not just the admin area). You can use this filter to strip out all of Word’s excess HTML (using kses for example).