Blogging with LibreOffice

This post is just a WordPress workflow test.

The goal (heading 3)

The goal is to find a reasonable way to edit a blog post in WordPress without using the online editor (previous 5 words underlined). The reason is that my internet connection is sometimes unreliable and after having lost the whole text of blog posts during editing, I prefer to edit, format save the text offline using LibreOffice.

This text is therefore edited and formatted entirely in LibreOffice 5, complete with hyperlinks. Below, I also include a one column/2 row borderless table with an image in the first row and a centered caption in the second row:


Above is a random image.
This is the centered image caption, complete with some bolded text.

Having formatted the text, one should be able to transfer the whole thing into WordPress by copy/paste or some other simple process. It goues without saying the transfer should be complete with formatting, tables, links and images. But when I try direct copy/paste, everything just disappears (previous 3 words in italics).

The solution? (heading 3)

Searching the web, I found that lots of of people have similar needs. One tip that seemed interesting was to work around the problem by first pasting the formatted text into an Online HTML editor and then from that into WordPress.

If you read this post, it means the procedure works.

2 thoughts on “Blogging with LibreOffice”

  1. A comment to this procedure is that it works as shown, but the image is encoded into the HTML code instead of being uploaded separately. To avoid that, it is probably a good idea to copy just the formatted text without the images and instead upload the images in the online WP editor using the “media” button. A bit more work, but it makes the images reusable.

    Another thing is that if you want the hyperlinks to open in separate pages, you need to go through them and add that property for each hyperlink on the online WP editor.

    With these caveats, the quackit online HTML editor makes life a lot easier for transferring formatted text from a word processor such as LibreOffice to a WordPress blog post.

  2. Another good solution is to use the docxpresso plugin

    https://wordpress.org/support/view/plugin-reviews/docxpresso

    With this option, you edit the whole post in LibreOffice and save the document as .odt. You can then upload the whole document using the doxpresso button in the WP editor. This method preserves the formatting even better, but you cannot make small adjustments like the hyperlink edits, because all of the text remains in the uploaded .odt file.

    Update: It turns out you can edit the hyperlink property within LibreOffice https://help.libreoffice.org/Common/Hyperlink
    Select the hyperlink, right click “Edit Hyperlink” and find the “Frame” field. Select the “_blank” option to make the link open in a new page.

Leave a Reply

Your email address will not be published. Required fields are marked *