Closed benel closed 3 weeks ago
Cette fonctionnalité serait utile afin de visualiser des diagrammes, ceci en permettant via l'interface de les ajouter (cas utile pour IF14)
If you rest on a library to format the documents (for instance easymde for markdown rendering), you can use it to include images into the documents. I have not tested this feature, but the documentation mentions the drag-and-drop behavior.
However, using such a library have drawbacks. AFAIK, the images will be included in documents; this will produce large documents and the database will quickly grow. That's why I have personally not enabled this feature into Cassandre.
Implementation strategy :
by @nitram35 & @raphaelweis
https://github.com/Hypertopic/HyperGlosae/assets/105852593/013d6f65-8eca-4407-b796-dae6e0e80b59
Merged as 597670f27dca514e9c4f5f4f5d4288c3e53e5a25.
For now, it is possible from a document to refer to a picture in Markdown:
However this picture must be already on a distant server.
The idea, for example, would be to drag and drop a picture (like in GitHub issues or discussions). It would be then stored in CouchDB as an attached file of the document chunk and a markdown reference would be automatically created in the document.