Undo and Redo shortcuts behave unpredictably
Closed this issue · 5 comments
I've found that when using cmd+z or cmd+shift+z I get unpredictable behavior. Now and then the commands work, but using them multiple times in a row almost always results in some part of what is being undone or redone to change and get modified in an unexpected way.
I'm using Doxter 0.6.1 though believe I have experienced similar behavior since 0.5.x. I hadn't reported anything yet as I was hoping to find some sort of pattern but I still can't seem to identify any patterns for what is going on.
I'm using Chrome on Mac.
I've noticed this too and I think it has something to do with the editor behavior library I'm using. I noticed it totally not working when there were reference tags within the editor but either way, I'll look into it sometime this week.
I revisited this tonight and was able to confirm the Behave.js
is causing the problem, it has been reported on their project repo but I don't think they will ever get to it.
Behave.js
adds a nice editor like behavior to the textarea but I think I might have to remove it if undo/redo will be this buggy.
My vote would be to just remove this functionality until a stable solution is found. In most cases, more advanced editing can be done using a text editor and having a predictable field that you can then copy your code into is important.
Yeah, I think this is a trigger I have to pull and get rid of Behave.js
This is currently fixed in the dev branch, after a few more refinements a new release will be cut for master.