I am also trying to synchronize two instances of the Ace editor. Therefore, when the user enters one, the other is updated.
Looking at my documents, I see that the EditSession change
event says that it returns the change delta, and Document has the applyDeltas
method.
So, I connected to this change event, and when it is fired, I call another document.applyDeltas and pass it, but it does not work.
I provoked their documents (and Google for an hour), but I donβt see how to synchronize them. Does anyone know how I can do this?
source share