fix paste image twice

This commit is contained in:
lealife
2021-03-26 16:01:42 +08:00
parent cb19d235c6
commit d49f837b2e

View File

@ -621,6 +621,8 @@ define("tinymce/pasteplugin/Clipboard", [
if (hasImage(e)) { if (hasImage(e)) {
removePasteBin(); removePasteBin();
// 不然会在内容中插入一个图片,
e.preventDefault();
return; return;
} }
@ -1189,4 +1191,4 @@ define("tinymce/pasteplugin/Plugin", [
}); });
expose(["tinymce/pasteplugin/Utils","tinymce/pasteplugin/WordFilter"]); expose(["tinymce/pasteplugin/Utils","tinymce/pasteplugin/WordFilter"]);
})(this); })(this);