mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 04:51:28 +08:00
Fix image paste handler is not executed (#3076)
This commit is contained in:
parent
358fa83d6d
commit
485fcfe0e0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user