shadman
2nd November 2007, 03:19 PM
I am currently attempting to integrate Jspell with Confluence, 2.5.4. We do desire to upgrade to 2.6.0, but there is a 3rd party plugin that does not currently work this version.
Integration with Confluence was previously accomplished - http://jira.atlassian.com/browse/CONF-1212. However, that was done prior to Atlassian extracting TinyMCE into a separate plugin. Also, the current instructions appear to be for a "standalone" Confluence configuration, although it probably works for the server version as well. In our case, we have Conlfuence, Roller and several other apps running in separate Tomcats with an Apache frontend, and virtual host evironments for each. So even though the instructions are helpful, for my purposes, they would not appear to be complete.
The first part of the instructions appear to still be correct, you must edit pages\includes\editpage-form.vm as directed. I then had to find the location of the tinyMCEOnInit(inst) JavaScript function. As it turns out, the correct file is: TinyMceEditor.vm, which is buried in a JAR file, atlassian-tinymce-plugin-1.12.jar, buried in a ZIP file, atlassian-bundled-plugins.zip, which in turn is buried in confluence (WEB-INF/classes/com/atlassian/confluence/setup). You MUST extract the JAR, then extract the file, correct it per the original instructions, then rebuild the JAR and the ZIP, and then replace the ZIP in the original directory structure. At server start-up this zip is extracted into the bundledplugins directroy in the confluence data directory, over-writing anything that is there. I know that this was a question on the Atalssian JIRA forum.
I have validated this by getting Jspell to work in a standalone environment.
Integration with Confluence was previously accomplished - http://jira.atlassian.com/browse/CONF-1212. However, that was done prior to Atlassian extracting TinyMCE into a separate plugin. Also, the current instructions appear to be for a "standalone" Confluence configuration, although it probably works for the server version as well. In our case, we have Conlfuence, Roller and several other apps running in separate Tomcats with an Apache frontend, and virtual host evironments for each. So even though the instructions are helpful, for my purposes, they would not appear to be complete.
The first part of the instructions appear to still be correct, you must edit pages\includes\editpage-form.vm as directed. I then had to find the location of the tinyMCEOnInit(inst) JavaScript function. As it turns out, the correct file is: TinyMceEditor.vm, which is buried in a JAR file, atlassian-tinymce-plugin-1.12.jar, buried in a ZIP file, atlassian-bundled-plugins.zip, which in turn is buried in confluence (WEB-INF/classes/com/atlassian/confluence/setup). You MUST extract the JAR, then extract the file, correct it per the original instructions, then rebuild the JAR and the ZIP, and then replace the ZIP in the original directory structure. At server start-up this zip is extracted into the bundledplugins directroy in the confluence data directory, over-writing anything that is there. I know that this was a question on the Atalssian JIRA forum.
I have validated this by getting Jspell to work in a standalone environment.