fix: solve the problem that pictures cannot be uploaded through the clipboard

This commit is contained in:
robin 2022-09-30 14:20:06 +08:00
parent 8358ec3b50
commit eca0431e89
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ const Image: FC<IEditorContext> = ({ editor }) => {
editor.replaceRange(text.join('\n'), startPos, endPos);
};
const paste = async (event) => {
const paste = async (_, event) => {
const clipboard = event.clipboardData;
const bool = verifyImageSize(clipboard.files);