marijnh/CodeMirror — Issue #62: unable to get separate history for multiple instances of codemirror
Author: ananyasen
Created: 2012-02-08 18:30:17+00:00
State: open

Hi,

I am trying to have multiple codemirror editors in the same html document. I am using Codemirror Version: 2.2
The way I am getting the different instances of codemirror is :

var myCodeMirror = CodeMirror.fromTextArea(myTextArea);

However I see that the history is shared between the different instances. In the codemirror.js I see that the instance does not get a new history object.

I need to be able to track the history of each codemirror instance separately. Is there a way I can do that?
Is there a different way of instantiating codemirror so that I can get a separate history per instance?

Will appreciate any help on this.

Thanks,
Ananya