未验证 提交 fdecf813 编写于 作者: E ezt19 提交者: GitHub

Update dragdrop.js

Fixing a problem when u cannot put two images and they are going into two different places for images.
上级 5ef669de
......@@ -119,7 +119,7 @@ window.addEventListener('paste', e => {
}
const firstFreeImageField = visibleImageFields
.filter(el => el.querySelector('input[type=file]'))?.[0];
.filter(el => !el.querySelector('img'))?.[0];
dropReplaceImage(
firstFreeImageField ?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册