From f8f2b8fa71b1a5f9c97c04e49c90d0a486cef907 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 21 Feb 2023 13:07:28 +0800 Subject: [PATCH] check that no html is availabel before assuming its an image --- docs/src/Roo_HtmlEditorCore.js.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2