mataroa-blog / mataroa

Naked blogging platform
https://mataroa.blog
GNU Affero General Public License v3.0
258 stars 22 forks source link

Rich editor #17

Open tsangiotis opened 2 years ago

tsangiotis commented 2 years ago

Would you consider a rich editor option?

Most non technical people hate markdown but we tech nerds love it. At least until we make a document from a phone or one with more than two pictures to upload. I am in the hate it department these days.

I have implemented Trix on django before and it is nontrivial.

If you would welcome a PR on that I can make it happen.

sirodoht commented 2 years ago

Hi @tsangiotis!

I think a rich editor might be too much.

I've talked to a few non-technical people about markdown but I didn't get the impression that they didn't like it. The opposite, I'd even say.

Trix looks pretty good but I think it's too much complexity, along with 200K of JS code. Saving HTML in the database instead of simple text is also an annoyance.

We'll keep it simple for now and I think in the near future as well :)

tsangiotis commented 2 years ago

Hello @sirodoht ,

JS code can be loaded only on editing the first time you create a post and be cached for the rest. Trix has a strict model easing the annoyance of saving HTML.

However it may reduce the ability to export to markdown files although HTML is valid markdown and there are some decent HTML to md converters.

In any case, I get where you come from and I like the idea of mataroa. Feel free to close this issue.