diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-10-15 12:08:54 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-10-26 11:43:36 +0100 |
| commit | 0505c4516414cc49fbb6b2532b8bcf7590ff0e4b (patch) | |
| tree | 3e637b1f58d8a31e2b65a12bdb0623cbcf997132 /addons/web_editor/static/src/js/rte.summernote.js | |
| parent | 80a396b9fd4039c8dca5a5ea10b8499eb2ee7305 (diff) | |
[FIX] web_editor: don't display the summernote black picture overlay
Issue: the overlay is confusing for user because summernote the size change is not active (to have a responsive design)
Diffstat (limited to 'addons/web_editor/static/src/js/rte.summernote.js')
| -rw-r--r-- | addons/web_editor/static/src/js/rte.summernote.js | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js index 264520b4745..c696468adb4 100644 --- a/addons/web_editor/static/src/js/rte.summernote.js +++ b/addons/web_editor/static/src/js/rte.summernote.js @@ -290,29 +290,13 @@ eventHandler.modules.popover.update = function ($popover, oStyle, isAirMode) { } }; -/* TODO: remove (original method seems enough now (only border-top,left is not done) */ -/* +var fn_handle_update = eventHandler.modules.handle.update; eventHandler.modules.handle.update = function ($handle, oStyle, isAirMode) { - - $handle.toggle(!!oStyle.image); + fn_handle_update.call(this, $handle, oStyle, isAirMode); if (oStyle.image) { - var $selection = $handle.find('.note-control-selection'); - var $image = $(oStyle.image); - var szImage = { - w: parseInt($image.outerWidth(true), 10), - h: parseInt($image.outerHeight(true), 10) - }; - $selection.data('target', oStyle.image); // save current image element. - var sSizing = szImage.w + 'x' + szImage.h; - $selection.find('.note-control-selection-info').text(szImage.h > 50 ? sSizing : ""); - - $selection.find('.note-control-sizing').toggleClass('note-control-sizing note-control-holder').css({ - 'border-top': 0, - 'border-left': 0 - }); + $handle.find('.note-control-selection').hide(); } }; -*/ ////////////////////////////////////////////////////////////////////////////////////////////////////////// /* hack for image and link editor */ |
