manyfold3d / manyfold

A self-hosted digital asset manager for 3d print files.
https://manyfold.app
MIT License
825 stars 49 forks source link

Add support for WYSIWYG not notes & description fields #2859

Open gavinmcfall opened 1 month ago

gavinmcfall commented 1 month ago

Would be great to get some basic WYSIWYG editing for those fields that support markdown.

Much like we have here in Github for editing comments.

Easy ways to set Headings, bold, lists, code blocks and links as opposed to writing the markdown/pseudo html

Floppy commented 1 month ago

Rails' ActionText might be able to do this easily. Otherwise there are some good WYSIWIG markdown editors out there that are easy enough to integrate.

Floppy commented 1 month ago

ActionText is overkill, TinyMCE will do the job - https://github.com/spohlenz/tinymce-rails is a handy gem that integrates and configures it simply.

Floppy commented 1 month ago

Except TinyMCE has gone to a GPL + commercial license, which would expose Manyfold instances to potential license breaches under the commercial license. So, not that.

gavinmcfall commented 1 month ago

What makes ActionText Overkill specifically?

Floppy commented 1 month ago

Maybe overkill is the wrong word, but it adds another database table for the rich text content, and I'd need to replace the existing field. So, bigger code change. I'm hoping for something I can just pop on top of the existing form as a progressive enhancement to raw markdown editing. I know I've done it before, I just can't remember what I used!

Floppy commented 1 month ago

Aha! https://github.com/Ionaru/easy-markdown-editor is what I used before.