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

This commit is contained in:
Pravesh Sharma authored and GitHub committed 2023-02-20 13:25:35 +05:30
1 parent b9cbf08b51
commit b1e6eaad61
1 file changed
+2 -2
@@ -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);
}