-
I'm using sun editor and I've added a callback to upload the images to Cloudinary when using the image button in the editor. It works just fine, same as the example, but I need something else: the markup generated when inserting the image into the content should have width and height properties. I have the width and height from the return of the cloudinary request, so it is just a matter of programatically making it be printed in the HTML output. Here is my onImageUploadBefore script:
First I thought that some prop in the result object should do it, but it looks like I'm not changing the correct place. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Before calling "uploadHandler", the property value of the "info" object must be changed.
http://suneditor.com/sample/html/out/document-user.html#onImageUploadBefore |
Beta Was this translation helpful? Give feedback.
Before calling "uploadHandler", the property value of the "info" object must be changed.
http://suneditor.com/sample/html/out/document-user.html#onImageUploadBefore