freemind plugin
I have written a wiki plugin to browse freemind mind maps for tikiwiki by copying code from other wiki plugins.
The plugin uses a little javascript and a free flash browser from the freemind web site, http://freemind.sourceforge.net. It can display a mindmap in a wiki page with:
{FLASHMM (src=>example.mm width=>xx height=>xx)}{FLASHMM}
However the file example.mm must already reside in a directory that is accessible to tikiwiki.
I would like to ask for some advice about the best way to implement the plugin:
- What name should I give the plugin? (Currently FLASHMM for flash mindmap browser)
- I would like to find a way to upload a mindmap without leaving the wiki page. Mindmaps have a file extension of ".mm". I have considered:
- Modify the image upload code to permit uploading a mindmap and modify the code that inserts the {img} macro to insert a {FLASHMM} macro instead.
- I could upload the file as an attachment, but the file names of wiki attachments are MD5-encoded. I can have my plugin MD5-encode the file name given in the src param, however the resulting MD5-encoded file name would appear in the javascript that is served to the web browser. Would this introduce a security risk?
I would appreciate advice on solution alternatives.
Thanks,
John