Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo not working anymore - a.done is undefined resp. hist.done is undefined #7

Open
q2apro opened this issue Sep 24, 2014 · 0 comments

Comments

@q2apro
Copy link

q2apro commented Sep 24, 2014

Hi, I love using codemirror in the latest modx evolution (1.0.14). Problem is that (I guess after some modifications that I unforatunately cannot recall) the live-saving undo-feature using CTRL+Z does not work anymore. I cannot figure out the exact reason but I could track down the error to line:

hist.done = copyHistoryArray(histData.done.slice(0), null, true);

Found in setHistory: function(histData) {

Using console.log I see that histData and the hist object have: History { length: 3, state: null }. But there is no histData.done.

Can someone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant