Hacker News new | ask | show | jobs
by notpushkin 613 days ago
I love how Trix [0] and (I think) ProseMirror [1] work in that regard: it does use contenteditable, but every edit you make is applied to an internal model instead, then the editor state is updated back from the model.

[0]: https://trix-editor.org/

[1]: https://prosemirror.net/

Edit: also Quill! I think it’s pretty much the goto strategy for WYSIWYG editors nowadays: https://v1.quilljs.com/guides/comparison-with-other-rich-tex...

1 comments

Lexical does the same.