Hi there! I’m using the mergeView addon. I’d like to be able to retrieve the current content (code entered) in each of the editors – by clicking a button, for example.
I’m assuming cm.getDoc() would need to be used, which I’ve tried, but I don’t know how it works nor how to implement it correctly.
ah great thanks! Yes this worked for the main editor pane. Now, if I have a 2-way mergeview, is there any chance I can do the exact same on second editor pane?