diff --git a/src/views/components/tinymce2/index.vue b/src/views/components/tinymce2/index.vue index 96c30ea15..524ea867b 100644 --- a/src/views/components/tinymce2/index.vue +++ b/src/views/components/tinymce2/index.vue @@ -115,12 +115,11 @@ export default { nonbreaking_force_tab: true, // 图片上传 images_upload_handler: function (blobInfo, succFun, failFun) { - console.log(that); - that.$message.warning('请上传小于10M的图片!') var xhr, formData; var file = blobInfo.blob(); // 转化为易于理解的file对象 if (file.size > 10 * 1024 * 1024) { failFun('请上传小于10M的图片!'); + that.$message.warning('请上传小于10M的图片!') // 从富文本框中删除图片 tinymce.activeEditor.undoManager.transact(function() { var imgNode = tinymce.activeEditor.dom.select('img[src="' + blobInfo.blobUri() + '"]')[0];