Skip to content

Commit

Permalink
Merge pull request #1319 from urosg80/history
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D authored Nov 8, 2022
2 parents fb35764 + 9840c01 commit a96b582
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/history/trumbowyg.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
},
plugins: {
history: {
destroy: function (t) {
t.$c.off('tbwinit.history tbwchange.history');
},
init: function (t) {
t.o.plugins.history = $.extend(true, {
_stack: [],
Expand Down Expand Up @@ -241,7 +244,7 @@
}
};

t.$c.on('tbwinit tbwchange', pushToHistory);
t.$c.on('tbwinit.history tbwchange.history', pushToHistory);

t.addBtnDef('historyRedo', btnBuildDefRedo);
t.addBtnDef('historyUndo', btnBuildDefUndo);
Expand Down

0 comments on commit a96b582

Please sign in to comment.