Skip to content
Snippets Groups Projects
Commit 17e40918 authored by jvm-odoo's avatar jvm-odoo
Browse files

[FIX] web_editor: fix duplicated pasted image summernote


Issue

        - Windows > Chrome or Firefox
        - Any chatter > Open full screen
        - Paste any image

        The image is pasted twice

Cause

        Summernote adds the image but
        the browser event adds it too

Solution

	I applied the fix that summernote did
	summernote/summernote/commit/6e432941af17c5fee0877d9ff54b6ace65fbdb4b

OPW-2267712

closes odoo/odoo#52532

X-original-commit: 2b4b2ce8
Signed-off-by: default avatarJason Van Malder (jvm) <jvm@odoo.com>
parent aa8d2a8b
Branches
Tags
No related merge requests found
......@@ -27,6 +27,7 @@ define([
var item = list.head(clipboardData.items);
if (item.kind === 'file' && item.type.indexOf('image/') !== -1) {
handler.insertImages(layoutInfo, [item.getAsFile()]);
event.preventDefault();
}
handler.invoke('editor.afterCommand', $editable);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment