ot-core in CodeMirror

Two real editors on one document, over a wire you can slow down. Type in both at once and watch them agree — including with the cursor in the middle of somebody else's sentence, which is the case a textarea demo cannot show you.

The binding is ot-core/codemirror, about a hundred lines. CodeMirror counts UTF-16 code units and this library counts code points, so every offset crossing that boundary is converted — try pasting an emoji and editing either side of it. Back to the playground.

Both editors agree.
Server authority revision 0

The wire

operations, as the binding produces them