The MergeView
encapsulates two (or three) editors, you can get at the editors with the .editor()
, .leftOriginal()
and .rightOriginal()
methods. In this case, since the originals don't change, you want
mergeView.editor().on("change", function(cm, change) { ... });