summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor/rte.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-09-04 17:02:36 +0200
committerChristophe Simonis <chs@odoo.com>2018-09-04 17:02:36 +0200
commit2a13863f4355eb84f620ce163d7a3ea2b4a28a29 (patch)
tree3c3e27c6ad7ad58c3c1a74e8023e34adb09730c8 /addons/web_editor/static/src/js/editor/rte.js
parent54ed832cdbfd1cf84a12c532b0696d56aada2111 (diff)
parent653bbbc73305bb21c89e1d7c10fd18f19e600317 (diff)
[MERGE] forward port branch saas-15 up to 653bbbc7330
Diffstat (limited to 'addons/web_editor/static/src/js/editor/rte.js')
-rw-r--r--addons/web_editor/static/src/js/editor/rte.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.js b/addons/web_editor/static/src/js/editor/rte.js
index c23cadd1f0f..341b42f93c6 100644
--- a/addons/web_editor/static/src/js/editor/rte.js
+++ b/addons/web_editor/static/src/js/editor/rte.js
@@ -157,7 +157,7 @@ var History = function History($editable) {
if (aUndo[pos]) {
pos = Math.min(pos, aUndo.length);
- aUndo.splice(Math.max(pos,1), aUndo.length);
+ aUndo.splice(pos, aUndo.length);
}
// => make a snap when the user change editable zone (because: don't make snap for each keydown)