Today I'm refactoring our rich text editor component for #Matrix. I have in mind a 3-layer structure:
* high level operations like "bold"
* medium level that preserves all the invariants (e.g. no adjacent text nodes)
* low level that does simple things like add/delete a node and does not preserve invariants
It's all happening over here: github.com/matrix-org/matrix-r…
GitHub - matrix-org/matrix-rich-text-editor: Matrix Rich Text Editor
Matrix Rich Text Editor. Contribute to matrix-org/matrix-rich-text-editor development by creating an account on GitHub.GitHub