From: Alan Date: Tue, 21 Feb 2023 05:07:28 +0000 (+0800) Subject: check that no html is availabel before assuming its an image X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=f8f2b8fa71b1a5f9c97c04e49c90d0a486cef907 check that no html is availabel before assuming its an image --- diff --git a/docs/src/Roo_HtmlEditorCore.js.html b/docs/src/Roo_HtmlEditorCore.js.html index 76e9aaa0c7..ef5a76808f 100644 --- a/docs/src/Roo_HtmlEditorCore.js.html +++ b/docs/src/Roo_HtmlEditorCore.js.html @@ -601,8 +601,8 @@ var cd = (e.browserEvent.clipboardData || window.clipboardData); // check what type of paste - if it's an image, then handle it differently. - if (cd.files && cd.files.length > 0) { - // pasting images? + if (cd.files && cd.files.length > 0 && cd.types.indexOf('text/html') < 0) { + // pasting images? var urlAPI = (window.createObjectURL && window) || (window.URL && URL.revokeObjectURL && URL) || (window.webkitURL && webkitURL);