mirror of https://gitee.com/answerdev/answer.git
fix: solve the problem that pictures cannot be uploaded through the clipboard
This commit is contained in:
parent
8358ec3b50
commit
eca0431e89
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue