tinymce / tinymce-vue

Official TinyMCE Vue component
MIT License
2.01k stars 202 forks source link

[version3.2.1]Problem with image_upload_handler #370

Open zmlplus opened 1 year ago

zmlplus commented 1 year ago

What is the current behavior? When I use the image_upload_handler function to add a custom verification of an image, the first upload of an image that fails verification can normally throw an error message. After uploading the same image again, there is no message. Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.

images_upload_handler(blobInfo, success, failure) {
    if (blobInfo.blob().size > self.maxSize) {
        failure('文件大小不超过5M')
    } else {
        //...
    }
}

What is the expected behavior? Every time an image fails to upload, there will be an error prompt, regardless of whether it is the same image or not. Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or tinymce-vue? tinymce-vue@3.2.1, Chrome@111.0.5563.110. The second question I haven't tried.

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3169