fix(editor): Fix copy to clipboard on insecure contexts (#8425)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-24 09:53:31 +01:00
committed by GitHub
parent 4b3ea81028
commit 7386f79362

View File

@@ -12,7 +12,7 @@ export function useClipboard(
},
) {
const { debounce } = useDebounce();
const { copy, copied, isSupported, text } = useClipboardCore();
const { copy, copied, isSupported, text } = useClipboardCore({ legacy: true });
const ignoreClasses = ['el-messsage-box', 'ignore-key-press'];
const initialized = ref(false);