If you copy source as html (or have any html in the clipboard), hitting paste in Windows Live Writer pastes the text without the markup. So since there is an SDK and some great samples, I went ahead and wrote a simple plugin to paste the clipboard contents as html (in about 10 minutes).
public override DialogResult CreateContent(IWin32Window dialogOwner, ref string newContent)
{
DialogResult result = DialogResult.OK;
if (Clipboard.ContainsText() == true)
newContent = Clipboard.GetText();
}
else
result = MessageBox.Show(dialogOwner, "Copy your HTML to the clipboard.", "Paste as Html", MessageBoxButtons.OKCancel);
if (result == DialogResult.OK && Clipboard.ContainsText() == true)
return result;
I've applied to join the CodePlex project so maybe my humble contribution will get added, but for now you can download it here.
Technorati Tags: Windows Live Writer - C#