Fixed an issue where query was not pasted to editor after trojan source warning. #5760

This commit is contained in:
Pravesh Sharma 2023-02-20 13:25:35 +05:30 committed by GitHub
parent b9cbf08b51
commit b1e6eaad61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,8 +368,8 @@ function calcFontSize(fontSize) {
return '1em';
}
function handlePaste(_editor, e) {
let copiedText = e.clipboardData.getData('text');
async function handlePaste(_editor, e) {
let copiedText = await e.clipboardData.getData('text');
checkTrojanSource(copiedText, true);
}