diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2015-09-25 10:53:08 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2015-09-25 10:53:08 +0200 |
| commit | eed63c793a55140b036bf807914e93c2a8bb37ad (patch) | |
| tree | 6a205e37eeac6c60f84f58191392b95457e1afac /addons/web_editor/static/src/js/rte.js | |
| parent | 15d2778f0f1f2fbdbe829530c82929b1efb51f5f (diff) | |
Revert "[IMP] web_editor: update summernote up to 2015-08-31"
Revert till several issues are solved.
Diffstat (limited to 'addons/web_editor/static/src/js/rte.js')
| -rw-r--r-- | addons/web_editor/static/src/js/rte.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/js/rte.js b/addons/web_editor/static/src/js/rte.js index 9e8a5709993..0e1f5a61d5a 100644 --- a/addons/web_editor/static/src/js/rte.js +++ b/addons/web_editor/static/src/js/rte.js @@ -144,9 +144,7 @@ var History = function History ($editable) { this.recordUndo = function ($editable, event, internal_history) { var self = this; if (!$editable) { - var rng = range.create(); - if(!rng) return; - $editable = $(rng.sc).closest(".o_editable"); + $editable = $(range.create().sc).closest(".o_editable"); } if (aUndo[pos] && (event === "applySnap" || event === "activate")) { |
