diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-12-10 13:18:54 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-12-10 15:17:44 +0100 |
| commit | 6cc99df83e9b72436ba5d79b7ad2829d73ec5a2f (patch) | |
| tree | e929825708a28ed8ffb11f90788fa3fc14b889eb /addons/web_editor/static/src | |
| parent | b72a3b67f8fe04eea29118b13c5d2ac000370938 (diff) | |
[FIX] web_editor: error when paste without any content in clipboard
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/summernote.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/summernote.js b/addons/web_editor/static/src/js/summernote.js index 2b2c26bfb68..a6f0e4aaa99 100644 --- a/addons/web_editor/static/src/js/summernote.js +++ b/addons/web_editor/static/src/js/summernote.js @@ -2298,7 +2298,7 @@ function summernote_paste (event) { // keep norma feature if copy a picture var clipboardData = event.originalEvent.clipboardData; - if (clipboardData.items) { + if (!_.isEmpty(clipboardData.items)) { var item = list.last(clipboardData.items); var isClipboardImage = item.kind === 'file' && item.type.indexOf('image/') !== -1; if (isClipboardImage) { |
