mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -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");
|
||||
let { clipboard, canPasteHtml } = clipboardData(e, isComposer);
|
||||
let { clipboard, canPasteHtml, canUpload } = clipboardData(e, isComposer);
|
||||
|
||||
let plainText = clipboard.getData("text/plain");
|
||||
let html = clipboard.getData("text/html");
|
||||
@ -892,7 +892,7 @@ export default Component.extend({
|
||||
}
|
||||
}
|
||||
|
||||
if (handled) {
|
||||
if (handled || canUpload) {
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user