From c7ff7cb491274c4c2cedca7e0f02b7ba4fd654ca Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 4 Nov 2015 13:34:32 +0100 Subject: [FIX] web_editor: remove editor bar flickering when edit a qweb field Issue: When the user click on a field (like monetary, text...) the editor bar appear and disappear. The undo buton is hidden for this fields. --- addons/web_editor/static/src/js/rte.summernote.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'addons/web_editor/static/src/js/rte.summernote.js') diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js index 2c7e4a6ad44..4e4af30f5aa 100644 --- a/addons/web_editor/static/src/js/rte.summernote.js +++ b/addons/web_editor/static/src/js/rte.summernote.js @@ -258,13 +258,6 @@ eventHandler.modules.popover.update = function ($popover, oStyle, isAirMode) { fn_popover_update.call(this, $popover, oStyle, isAirMode); - if (!isAirMode || (oStyle.range && $(oStyle.range.sc).closest('[data-oe-model]:not([data-oe-model="ir.ui.view"]):not([data-oe-type="html"])').length)) { - $imagePopover.hide(); - $linkPopover.hide(); - $airPopover.hide(); - return; - } - if (oStyle.image) { if (oStyle.image.parentNode.className.match(/(^|\s)media_iframe_video(\s|$)/i)) { oStyle.image = oStyle.image.parentNode; -- cgit v1.2.3