I was trying to find a way to edit a blog offline, and then I realized that it might be possible using LyX ( an open source document editor ). I found that I could use a program called LyX Blogger to upload an LyX document to WordPress.
LyX Blogger makes it possible to upload a LyX document to WordPress. So you can edit your LyX document offline and then use LyX Blogger to upload the document. This post was made using LyX and uploaded using LyX blogger.
LyX Blogger is a program coded using python. So you need python. If you are using Linux or Mac OS X, python should be already in your system, but if you are using Windows you need to separately install python. If you have python, then you can go to the LyX Blogger site http://www.nongnu.org/lyxblogger/ and download the latest version. Then follow the steps in http://www.nongnu.org/lyxblogger/userguide.html to install LyX Blogger.
1. Downloaded LyXBlogger_0.42.tar.gz from http://download-mirror.savannah.gnu.org/releases/lyxblogger/
tar -zxvf LyXBlogger_0.42.tar cd LyXBlogger_0.42.tar/INSTALL python setup.py install
Once you have made a document using LyX export the document to LyXHTML by File->Export->LyXHTML. Next type the following command in the folder that has the document you want to upload using terminal.
python -m lyxblogger fileName.xhtml
If you do like above, the uploaded post will have a red underline. You can remove it by editing your post and then just press the update button without doing anything.
You can get the window from python directly from LyX. The method is written in the LyX Blogger user manual and I will not write it down here.