BaldissaraMatheus / Tasks.md

A self-hosted, Markdown file based task management board
https://hub.docker.com/r/baldissaramatheus/tasks.md
MIT License
737 stars 30 forks source link

Replace simplemde with Stack Editor #36

Closed BaldissaraMatheus closed 1 year ago

BaldissaraMatheus commented 1 year ago

This PR replaces the old editor, SimpleMDE, with a new one, Stacks Editor.

Even though SimpleMDE is a great editor, it has some limitations and other editors could fit better the application's needs. Stacks-Editor has autolinks (all "http"s words in the card's content are clickable even when not formatted as markdown links), a switch button for rich text and markdown modes, an API easier to manipulate and to apply theme changes, a nicer UI (IMO) and support for images upload (which will be the next update I'll work on).

But it also has some drawbacks, the dependency package is a little heavier than the old one, it has a bunch of CSS classes that are not being used or had to be overrided, and for its implementation I had to include a very ugly setTimeout line to make it work. But I couldn't find any other editor out there that has all those features without some big disadvantages or awkward implementations, and making a brand new editor would take much time, so I think Stacks-Editor is the best option for now.

Before publishing a new release with this change I will make a PR for images upload.