InsidersByte / our-wedding-heroes

Wedding website with a honeymoon gift list
MIT License
6 stars 6 forks source link

Change from markdown to draft.js #196

Open InsidersByte opened 8 years ago

InsidersByte commented 8 years ago

The rich text editor looks to be better than using markdown http://facebook.github.io/draft-js/

100ideas commented 8 years ago

draft.js looks like it would be easier to integrate with react, but doesn't intrinsically support markdown. prosemirror is similar, but the document model it uses internally is designed to map more closely (I think) to CommonMark, and consequently combined markdown & rich text editing is supported directly.

more info from prosemirror homepage:

There is something of a gap between MarkDown textareas (limited, hard to use) and classical HTML WYSIWYG editors (content becomes a non-semantic blob). ProseMirror aims to fill this gap.

It does this by decoupling its content model from HTML. ProseMirror ships with a default document schema that is quite close to CommonMark, but allows you to define your own content schema, including exactly the elements you need, and possibly adding your own custom elements.

InsidersByte commented 8 years ago

my thinking was to drop markdown and use draft.js instead.

There was a few reasons I wanted to try it:

here is an interesting talk about it https://youtu.be/feUYwoLhE_4

100ideas commented 8 years ago

I think that makes a lot of sense. I am considering prosemirror for a project that involves more technical writing, but in this case I don't think target users will even know what markdown is necessarily.