mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 00:01:19 +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')
|
const text = rawText || event.clipboardData.getData('text/plain')
|
||||||
let html = rawHtml || event.clipboardData.getData('text/html')
|
let html = rawHtml || event.clipboardData.getData('text/html')
|
||||||
if (!text && !html) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Support pasted URLs from Firefox.
|
// Support pasted URLs from Firefox.
|
||||||
if (URL_REG.test(text) && !/\s/.test(text) && !html) {
|
if (URL_REG.test(text) && !/\s/.test(text) && !html) {
|
||||||
|
Loading…
Reference in New Issue
Block a user