how to use the change event with mergeview?


#1

Hi there. I’m loving using codemirror so far, thanks so much to the devs!

Ok, so I am having trouble implementing the change event. If my codemirror instance is ‘dv’, and i’m using the mergeview, how can i get the change event to fire specifically from one of the mergview editor panes?


#2

I believe I told you in the other thread—use editor() or rightOriginal() to get at the inner editor instances. Those support all of the events and methods that CodeMirror has.


#3

Right, but I’m having trouble understanding what the event code should look like:

I’ve tried using what others have posted in this forum, but I must not be doing something right. Could you advise me on how to catch a change event from a given instance, perhaps whenever text is entered?