News for hackers. Stuff that matters.
Re:React Draft Wysiwyg by amelius on Tuesday November 22, 2016 @06:26AM (#13013303)
Prosemirror still uses contenteditable under the hood though. I actually wonder why that is the case.
Re:React Draft Wysiwyg by grayrest on Tuesday November 22, 2016 @09:49AM (#13014457)
It handles the more complex (e.g. CJK) input methods. The alternative is a hidden text field and you have to put more effort into emulating the cursor (e.g. up arrow/down arrow). Regularly re-generating the underlying markup removes a large class of edge cases and cross-browser incompatibilities in exchange for not being able to use the browser's native undo. It's still a lot harder than you'd expect but it seems to be working for draft and prosemirror better than my attempt to normalize the cross browser differences and rely on the browser.

P.S. I also came into this thread to endorse Prosemirror.

Re:React Draft Wysiwyg by ingenter on Tuesday November 22, 2016 @06:34AM (#13013331)
To be fair "React Draft Wysiwyg" is using contenteditable too, but it also builds a full model of the document.