diff options
Diffstat (limited to 'addons/web_editor/static/src/js/editor')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/rte.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.js b/addons/web_editor/static/src/js/editor/rte.js index 6194cfd35b6..3dc7c69baab 100644 --- a/addons/web_editor/static/src/js/editor/rte.js +++ b/addons/web_editor/static/src/js/editor/rte.js @@ -565,6 +565,10 @@ var RTEWidget = Widget.extend({ if ($editable.is('[data-oe-model]') && !$editable.is('[data-oe-model="ir.ui.view"]') && !$editable.is('[data-oe-type="html"]')) { $editable.data('layoutInfo').popover().find('.btn-group:not(.note-history)').remove(); } + if ($editable.data('oe-type') === "image") { + $editable.attr('contenteditable', false); + $editable.find('img').attr('contenteditable', true); + } }, /** * When an element enters edition, summernote is initialized on it. This |
