diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-06-21 14:02:14 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-11 10:37:16 +0200 |
| commit | 6bd601475fc53f19b9c75ed97fbec8ba5511b1b7 (patch) | |
| tree | 3fd41980a4e577805528cd8e57164cb208a40508 /addons/web_editor/static/src/js/editor/rte.summernote.js | |
| parent | eb662e6463786cf65d4a61f242cc5921ffc39cfa (diff) | |
[IMP] web_editor, *: edit all pictures on double click
* website_sale
Images which were related to a model's field were able to be edited
by a simple click on them. This prevented the use of the "Customize"
menu and was inconsistent with the edition of "normal" pictures which
occured on double click.
task-1859807
Diffstat (limited to 'addons/web_editor/static/src/js/editor/rte.summernote.js')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/rte.summernote.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.summernote.js b/addons/web_editor/static/src/js/editor/rte.summernote.js index 14c0e26cab9..3626d5d3ec0 100644 --- a/addons/web_editor/static/src/js/editor/rte.summernote.js +++ b/addons/web_editor/static/src/js/editor/rte.summernote.js @@ -798,11 +798,6 @@ eventHandler.attach = function (oLayoutInfo, options) { eventHandler.modules.linkDialog.show(oLayoutInfo); }); - if (oLayoutInfo.editor().is('[data-oe-model][data-oe-type="image"]')) { - oLayoutInfo.editor().on('click', 'img', function (event) { - $(event.target).trigger("dblclick"); - }); - } oLayoutInfo.editable().on('mousedown', function (e) { if (dom.isImg(e.target) && dom.isContentEditable(e.target)) { range.createFromNode(e.target).select(); |
