4 ms·
Cool to see persistent data structures under the covers here. I tried to make a contentEditable editor some time ago and gave up when I realized how many edge c
by catpolice 9y ago
Cool to see persistent data structures under the covers here. I tried to make a contentEditable editor some time ago and gave up when I realized how many edge cases there would be, but from what I learned when working on that, this general sort of approach seems like the right way.
What do you feel like you learned when working on this project? Will any of it make it back to Codemirror?
- marijn 9y agoI finally figured out how to apply a functional / unidirectional data flow architecture to the (demanding) case of an editor. And yes, there are plans to integrate this into CodeMirror at some point.
- dgreensp 9y agoCan you comment on what you figured out? Was it about making functional/persistent data structures performant enough, or something else?
- marijn 9y agoThat. And also how to deal with the interaction between browser state (around IME and such) and the component state. And how to properly model updates (see thread [1]) in a way that plugins can extend and consume in a modular way. [1]: https://discuss.prosemirror.net/t/discussion-the-limits-of-actions-and-reducers/551 https://discuss.prosemirror.net/t/discussion-the-limits-of-a...