News for hackers. Stuff that matters.
Re:Pell – A simple and small rich-text editor for the web by codebeaker on Thursday July 13, 2017 @09:18AM (#14760953)
I'm surprised to see no mention of the Trix editor here amongst the comments about how contentEditable is the root of all evil. Trix has a nice solution, from their readme:

  Trix sidesteps these inconsistencies by 
  treating contenteditable as an I/O devi-
  ice: when input makes its way to the ed-
  itor, Trix converts that input into an 
  editing operation on its internal docum-
  ent model, then re-renders that document
  back into the editor. This gives Trix 
  complete control over what happens after
  every keystroke, and avoids the need to 
  use execCommand at all.
Trix is from basecamp, and has a super healthy plugin/extension ecosystem - https://github.com/basecamp/trix

Full disclosure: not affiliated at all, but the rare times I need a WYSIWYG editor I tend to look for Trix and be very pleased.

Re:Pell – A simple and small rich-text editor for the web by dbbk on Thursday July 13, 2017 @08:16PM (#14766454)
I've been using Mobiledoc lately which also follows this model, and it feels like the right way to go for me. Fighting against contenteditable is a never-ending uphill battle.
Re:Pell – A simple and small rich-text editor for the web by roryisok on Thursday July 13, 2017 @09:59AM (#14761258)
QuillJS also does this, I believe