Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imageUploadHandler never called #1510

Open
simar88 opened this issue Feb 1, 2025 · 1 comment
Open

imageUploadHandler never called #1510

simar88 opened this issue Feb 1, 2025 · 1 comment
Labels

Comments

@simar88
Copy link

simar88 commented Feb 1, 2025

Hi, thanks for this awesome library. I love it!
I've an issue with imageUploadHandler, it seems to not be called.

this.sunEditor.onImageUploadBefore = function (files, info, core, uploadHandler) { console.log('onImageUploadBefore'); return true; } this.sunEditor.imageUploadHandler = function (xmlHttp, info, core) { console.log('imageUploadHandler'); }

The onImageUploadBefore it's ok, the imageUploadHandler was neve called.
Can you help me?
Thanks in advance.

@JiHong88
Copy link
Owner

JiHong88 commented Feb 3, 2025

You must also specify "imageUploadUrl" option.
"imageUploadHandler" is executed in the callback method after the server upload is processed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants