I’m building an app with two editors, split vertically. One for users to type into, and the other that formats it (changes the words, fixes spelling, things like that…).
My question is, how it is possible to keep two editors in sync when you scroll?
I’m looking at the “merge add-on” and the scrolling is very tight and synched. So I know at least technically it is possible. But of course that plugin is for diffs, not the same use case.
Also I’m looking the Codemirror 6 split examples. Is it possible for two EditorView’s to sync their scroll position, but have different state?