How to use transformImgUrl on img upload? #669
-
Is there a way to use transformImgUrl when uploading an image via the MdEditor? I'm trying to store some temporary images locally as base64 before uploading to S3. Currently I'm getting the below, but want to display a shorter image name text. Many thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
imzbf
Sep 13, 2024
Replies: 1 comment 1 reply
-
If you need to display an image using base64, there seems to be no way to shorten it? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CyberSekure
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you need to display an image using base64, there seems to be no way to shorten it?
When uploading an image, you can directly convert the image content in the
onUploadImg
event; there's no need to settransformImgUrl
. This method is used when pasting content similar to![](./img.png)
.