nextcloud / nextcloud/files_mindmap
Feature request: HTML export
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 197
- Forks
- 52
- Avg merge
- 22h 14m
- Merged PRs (30d)
- 13
Description
This is a great tool! Thanks!
However, once I created my mind map I want to share it.
NextCloud will generate a link to the km file that I can share with anyone.
People will be able to download the file, which is useless if they don't have a tool that displays it properly.
Currently, the only way for someone to visualize the mind map, holding links and tooltips, seems to be to share the NextCloud link, and let the NextCloud instance to use the same editing app to display the file.
I think this is not good because:
-It holds a dependency on the software (at least pdf export did not work very good yet, and svg takes interactivity and links off the road)
-Once the mind map is created I want to share it as view only, without all the editing toolbars.
-It would be great to be able to export a map to an HTML file.
Proposal:
Add export to HTML function.
Not sure how difficult it would be to create an HTML map rendering in a simple way without all the engine toolbars, but using jsmind, it seems very easy to export the map as an HTML file (not sure if the license fits here?).
I was doing some testing, and the km format is pretty similar to the node-array format(1.2.B).
Saving the jsmind js and css files, either embedded or outside the HTML file, and adjusting the km json to fit the one of the formats used by jsmind (aren't these any common?) should be a quite simple thing to do, and would allow for an easy HTML5 + Js export.
Base export to some of the formats used by jsmind and a reference to its usage would be great as a start, as it would allow anyone to build a view only HTML pretty quick.
Mentioned jsmind because it is what I could find and thought it would be compatible in terms of licencing, but I can see now that probably it is not. Anyway the idea would be still to be able to export a map in a view only HTML format that any browser could represent without the NextCloud dependency (and ideally without the editing tooling section).
Even better would be to export to simple HTML + CSS, even if that would not allow to hide and expand nodes (same happens with the image and pdf export, but still HTML seems a better option in most cases).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing PDF and SVG export paths and the code that serializes the km format. Review how links, tooltips, and the editing toolbar are represented, and verify the licensing implications of the proposed jsmind approach. Done means a browser-viewable HTML export that preserves the requested interactivity without requiring NextCloud or editing tools.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100