Open InsidersByte opened 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.
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
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.
The rich text editor looks to be better than using markdown http://facebook.github.io/draft-js/