{"issue":{"pull_request":{"diff_url":"https://github.com/marijnh/CodeMirror2/pull/247.diff","html_url":"https://github.com/marijnh/CodeMirror2/pull/247","patch_url":"https://github.com/marijnh/CodeMirror2/pull/247.patch"},"state":"open","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/37a37eb85b18dfee38bcb46438c7b1b8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"37a37eb85b18dfee38bcb46438c7b1b8","url":"https://api.github.com/users/dbertram","login":"dbertram","id":864848},"updated_at":"2011-11-17T08:57:53Z","labels":[],"assignee":null,"closed_at":null,"comments":1,"url":"https://api.github.com/repos/marijnh/CodeMirror2/issues/247","body":"It's not exactly rigorous in its safety checks, and this approach does involve exposing the History object as a sort of API, but it's enough to enable me to add the \"store/restore\" functionality I mentioned in issue #135.","html_url":"https://github.com/marijnh/CodeMirror2/issues/247","title":"add (very) basic support for getting/setting the internal History object issue #135","number":247,"id":2261193,"created_at":"2011-11-16T20:16:57Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/f6a35c85d26694e26bb92ea4d4262c77?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f6a35c85d26694e26bb92ea4d4262c77","url":"https://api.github.com/users/marijnh","login":"marijnh","id":144427},"updated_at":"2011-11-17T08:57:53Z","url":"https://api.github.com/repos/marijnh/CodeMirror2/issues/comments/2773675","body":"Is there a reason you're not just keeping your editor instance around, hiding it and creating a new one for the other document?\r\n\r\nSetting the history is inherently unsafe -- it only works when the document is exactly the way it was when the history was taken. Given that, you might as well keep the whole editor if you want to save its state.","id":2773675,"created_at":"2011-11-17T08:57:53Z"}}