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.
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.
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.