3 ms·
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 inst
by notpushkin 2y 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/ https://trix-editor.org/
[1]: https://prosemirror.net/ 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-text-editors https://v1.quilljs.com/guides/comparison-with-other-rich-tex...
- kibibu 2y agoLexical does the same.