diff options
| author | Gorash <chm@odoo.com> | 2019-05-06 10:29:23 +0000 |
|---|---|---|
| committer | Gorash <chm@odoo.com> | 2019-05-06 10:29:23 +0000 |
| commit | eaeff40236c2c63d5e7cfb2bffe59ee5957f5849 (patch) | |
| tree | 3374715e6ffb75ad503893c2e87b3819cf13fc37 /addons/web_editor/static/src/js/wysiwyg/plugin/media.js | |
| parent | b2df3c7f30ee9ad488357125fc39ebc3cb7fab35 (diff) | |
[FIX] web_editor: drop an image in the editable area
Issue: can't drop a image if the editor is not focused or if the editor is
empty
Diffstat (limited to 'addons/web_editor/static/src/js/wysiwyg/plugin/media.js')
| -rw-r--r-- | addons/web_editor/static/src/js/wysiwyg/plugin/media.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/media.js b/addons/web_editor/static/src/js/wysiwyg/plugin/media.js index 1509a6412df..9ac36b2158a 100644 --- a/addons/web_editor/static/src/js/wysiwyg/plugin/media.js +++ b/addons/web_editor/static/src/js/wysiwyg/plugin/media.js @@ -43,6 +43,8 @@ var MediaPlugin = AbstractPlugin.extend({ 'dblclick .note-editable': '_onDblclick', }, + mousePosition: {}, + //-------------------------------------------------------------------------- // Public //-------------------------------------------------------------------------- |
