I've finally managed to get LibreOffice Online working through Alfresco. However, the normal close window button doesn't work in the LibreOffice window. This seems to be a feature of LibreOffice Online itself. The obvious solution is to modify the 'Edit in LibreOffice' button to open in a new tab/window.
The question is: How do you do this?