Open gavinmcfall opened 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.
ActionText is overkill, TinyMCE will do the job - https://github.com/spohlenz/tinymce-rails is a handy gem that integrates and configures it simply.
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.
What makes ActionText Overkill specifically?
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!
Aha! https://github.com/Ionaru/easy-markdown-editor is what I used before.
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