Skip to content

Commit

Permalink
fix(editor): Fix copy to clipboard on insecure contexts (#8425)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Jan 24, 2024
1 parent 4b3ea81 commit 7386f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/composables/useClipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7386f79

Please sign in to comment.