Insert Formatted Clipboard plugin for Window Live Writer


Download: Insert Formatted Clipboard for WLW Setup

WLW Beta2 Update: WLW Beta2 now support pasting formatted clipboard contents so I was going to pull this tool.  But for some reason this tool still produces better results (as far as I can tell).  So if you’re not happy with the default paste results, this tool may help.

Description
WLW doesn’t support pasting rich content from the clipboard.  Try copying something from IE or an Office product (Word, Excel, etc) and paste it into WLW, just plain text is all you get.  With this plugin, you can paste clipboard contents and keep most of that nice formatting.

How it Works
This plugin uses the IE DHTML Editing Control behind the scenes to parse the clipboard contents into a valid block of HTML.  MS Word is known for it’s messy HTML, but this does a fine job of cleaning it up.  It uses the technique I discussed in Copy Paste HTML From MS Word: IE’s DHTML Editing Control (in a .NET WinApp).  This is wrapped into a plugin using the WLW SDK.

Using the Plugin
You can use this with any app that puts HTML onto the clipboard.  This includes IE, FireFox, Word, Excel, etc.  By using this control, I can get nicely formatted C# code into my posts (see Tip: Beautifully Formatted .NET C# Code in Blog Post).  There is another Insert Code plugin for WLW, but I don’t care for it.  WLW has a hard limit of 32k of HTML code, which you can rapidly hit by inserting too much formatted HTML, so be aware of this.

When using this plugin, it doesn’t include images or get a perfect rendition of the clipboard contents, but it does a pretty good job.  Try it out on this HelloWorld.doc file.  WLW doesn’t always render just right in HTML view.  You’ll get the most accurate rendering when the post is published and you view it in the browser.  Pressing F11 in WLW will rerender the HTML view and sometimes helps.

Windows Live Writer Gallery
My submission to the WLW Gallery is currently pending.  I’ll update this post with the link to the tool there when it has been approved.

Comments (12)

  1. Kurbli says:

    Újabb hasznos dolog. Download: Insert Formatted Clipboard for WLW Setup Description WLW doesn’t support

  2. Shahar says:

    Nice. I was just looking for something like this. Thanks.

  3. jvierra says:

    Won’t work on XPSP2 with IE7.

    Get an error message that MSHTML 7 can’t be loaded.  Possibly due to newer MSHTML with IE7 requiring signed asssembly to obtain a load????

    Any ideas?

  4. Insert File (via FTP) plugin XML file

  5. Jay says:

    Still won’t work with XPSP2 and IE7…

  6. Robert Stuczynski (Noise) says:

    It is fantastic plugin – thank you very much

    Robert Stuczynski (Noise)

  7. Dean Lennon says:

    YOUR THICK………………????????????????????

  8. Morten says:

    I cant get it working either, so i just prewiew my word and excel documents as webpage, and take the HTML code and paste into WLW and there go!! Formating is perfect

  9. Anonymous says:

    Dude, this no longer installs with the latest live writer.  Every time I try to install this it says that you need Live Writer and takes me to the damn website!  And I’ve tried to install this plugin on several PCs so it’s definitely not an environment issue.

    Please fix this bug, we can’t use it anymore!  I loved this plugin.

  10. brent says:

    agreed… fails to work as the above poster says with the latest versions of WLW.  Says it requires it and takes you to the WLW download… but we already have WLW.  I would guess the "check for WLW" function isn't working with the latest version numbers or something.

  11. how to make it work says:

    unpack the msi file with uniextract

    copy the dll file to live writer/plugin dir