diff options
-rw-r--r-- | app/assets/javascripts/lib/text_utility.js.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/text_utility.js.coffee b/app/assets/javascripts/lib/text_utility.js.coffee index 7a115a6d8b5..75e398ddaeb 100644 --- a/app/assets/javascripts/lib/text_utility.js.coffee +++ b/app/assets/javascripts/lib/text_utility.js.coffee @@ -77,6 +77,9 @@ unique = gl.text.undoManager.addUniqueIfNotExists($thisTextarea) if not gl.text.undoManager.undoHistory[unique].length return + latestUndo = gl.text.undoManager.undoHistory[unique].pop() + gl.text.undoManager.history[unique].push(latestUndo) + $thisTextarea.val(latestUndo.newVal) gl.text.addListeners = () -> console.log('addListeners') |