How to enhance Live Edit to take care of your own file type
By default, we recognize default office files (doc, docx, xls, xlsx, odt, ...) for both Microsoft Office and OpenOffice.org. But sometimes, you could be interested in managing other file types with Live Edit, and launching their associated editors.
With Internet Explorer
Recognized extensions are managed in the Windows Registry. They are simple string values, stored in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\Accepted Documents and using this model:
In a .reg file, a new handled extension should looks like: "liveedit_msoffice12_word_template"="application/x-nuxeo-liveedit;ext7=\"vnd.ms-word.template.macroEnabled.12\"".
The key is a unique name, and in this example, it is "liveedit_msoffice12_word_template".
The value is built like a MIME-TYPE: application/x-nuxeo-liveedit;extX="FILE_MIME_TYPE". In this example, the value is: "application/x-nuxeo-liveedit;ext7="vnd.ms-word.template.macroEnabled.12".
With Internet Explorer, Live Edit will open the associated program and save the edited file into Nuxeo when the program ended. |
Do not forget to restart your browser after making changes. |
See the attached file to enable all Microsoft Office extensions.
With Firefox
In the extension preferences form, you can directly add the editor / MIME-TYPE mapping. By doing this, it will be enough to enable a new extension.
With Firefox, you just receive a file descriptor with the file URL and authentication information. You also need to add a script to download the file, start the editor and upload it when finished. |