-
Notifications
You must be signed in to change notification settings - Fork 307
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
Is there any working example on how to use the imageUploadFunction #574
Comments
Yeah: #334 |
Yes, but as I sad in my question the code from #334 is not working. |
All code samples I found that has same issue but finally I made it with flask backend with below codes and working right for me:
and JavaScript part:
|
@Lunedor were you able to have an indicator while uploading? Like how GitHub shows |
@bilogic No I haven't seen something like that or try to do make it, I just make some arrangements for resizing image that's all maybe you can use same logic to achieve this one, You can check my repo here: https://github.com/Lunedor/The_Writer |
There was a similar question #334, but the answer to that is not working that well.
The image is displayed kinda weird.
In Markdown, it looks like this:
![image](https://private-user-images.githubusercontent.com/73551199/291543151-5f83b066-ff5d-4674-9139-e417a3013a57.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1NjIyNDEsIm5iZiI6MTcxODU2MTk0MSwicGF0aCI6Ii83MzU1MTE5OS8yOTE1NDMxNTEtNWY4M2IwNjYtZmY1ZC00Njc0LTkxMzktZTQxN2EzMDEzYTU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE2VDE4MTkwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQyNDM1N2MzNDY3YjBiYjZkOTY1NWM4Yjg0MDFhM2Q5ZDI2MzQ2NDQwMTMyZDdmNTU5ODQ1YmM1MTFhMGI0NDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YToGtK3cRbsp_4koBdgSv-dMjPjj4QI1Bg1f7KxI6zc)
![image](https://private-user-images.githubusercontent.com/73551199/291543384-c374c346-54dc-41bb-a857-2f1736d818fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1NjIyNDEsIm5iZiI6MTcxODU2MTk0MSwicGF0aCI6Ii83MzU1MTE5OS8yOTE1NDMzODQtYzM3NGMzNDYtNTRkYy00MWJiLWE4NTctMmYxNzM2ZDgxOGZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE2VDE4MTkwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzMWUyYmYxYTcwMWFmNGY2ZjE4M2VlNjM2NzAyNGM0NGRkYzE5MGU1ODRkMmMzYTE2OGY5ZGM2YTY4NjE4ODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4xauzUmTLpURh108xTX78Xy-uJZV2XwjHjIuzlH7tvk)
![image](https://private-user-images.githubusercontent.com/73551199/291543709-29c39684-f33c-4d9b-a941-ce34a57e7f6c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1NjIyNDEsIm5iZiI6MTcxODU2MTk0MSwicGF0aCI6Ii83MzU1MTE5OS8yOTE1NDM3MDktMjljMzk2ODQtZjMzYy00ZDliLWE5NDEtY2UzNGE1N2U3ZjZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE2VDE4MTkwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiOWNkMzdkYmM4ODNhYTNhY2Q4MWY1YmM1YTY5OGEyY2FiZWJiZmMzNWM1OTVmYjYzMTU2YWRmZDgyMTE0MzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aZJ1KZ4HK6CDlLNmSSpd7OVXi6y-hP5FJUFqCaW1EiE)
When Im using the preview it looks like this:
But as soon as I click on the "Z", it looks like this:
And there is no other way to go out of the preview, than reloading the website.
The answer to question #334 was this code:
In total my Editor looks like this:
It would be nice to have a working example of the imageUploadFunction.
The text was updated successfully, but these errors were encountered: