mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: prevents url of file from being pasted when pasting file on iOS (#8693)
This commit is contained in:
parent
cb660ef952
commit
5ce602ecea
@ -842,7 +842,7 @@ export default Component.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isComposer = $("#reply-control .d-editor-input").is(":focus");
|
const isComposer = $("#reply-control .d-editor-input").is(":focus");
|
||||||
let { clipboard, canPasteHtml } = clipboardData(e, isComposer);
|
let { clipboard, canPasteHtml, canUpload } = clipboardData(e, isComposer);
|
||||||
|
|
||||||
let plainText = clipboard.getData("text/plain");
|
let plainText = clipboard.getData("text/plain");
|
||||||
let html = clipboard.getData("text/html");
|
let html = clipboard.getData("text/html");
|
||||||
@ -892,7 +892,7 @@ export default Component.extend({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handled) {
|
if (handled || canUpload) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user