Skip to content

Programatically set image width and height when uploading to external source #1109

Answered by JiHong88
lhguerra asked this question in Q&A
Discussion options

You must be logged in to vote

Before calling "uploadHandler", the property value of the "info" object must be changed.

editor.onImageUploadBefore = (files, info, core, uploadHandler)=>{
  info.inputWidth=''
  info.inputHeight=''
}

http://suneditor.com/sample/html/out/document-user.html#onImageUploadBefore

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lhguerra
Comment options

Answer selected by lhguerra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants