|
|
|
|
|
by ghProTip
704 days ago
|
|
Nice! I used TipTap on top of ProseMirror(and ProseMirror.Net) with stepwisehq.com . Most React prosemirror-based editors were making the same mistake a couple years ago; re-rendering everything on each keystroke. Particularly the tool bars, and then the node views of course. I created an observable(MobX) "fact cache" that I populate with extra state information necessary to drive the toolbars and other complex editor UI after each keystroke. Active node types, active marks, nodes fully in selection, and etc. Super fast to update, can even prune search space based on doc diffs, and minimizes React work. |
|