Fix image paste handler is not executed (#3076)

This commit is contained in:
Felix Häusler 2022-03-06 05:12:34 +01:00 committed by GitHub
parent 358fa83d6d
commit 485fcfe0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,9 +265,6 @@ const pasteCtrl = ContentState => {
const text = rawText || event.clipboardData.getData('text/plain')
let html = rawHtml || event.clipboardData.getData('text/html')
if (!text && !html) {
return
}
// Support pasted URLs from Firefox.
if (URL_REG.test(text) && !/\s/.test(text) && !html) {