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
How to add custom menu buttons #132
Comments
@GEMI If you have to create |
@GEMI
Replace
|
虽然你这种侵入性的方法很龊,更新以后的新版本,可能就不兼容了。 |
Yeah It should be able at least to rename standard buttons. Add a new one. |
The download button opes a new tab . i don't want that new tab how to stop that ? |
Can you show the example? |
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks! |
This issue will be closed due to inactivity. Thanks for your contribution! |
Hi! I want to use the custom function on the download button is it possible and how can I do that |
Hi. I want to save the edited image (without downloading it to the local system) in a storage system (maybe S3) and then save the image URL in database. How can I do that? |
@singhkirtii I'm looking for this solution as well. Could you figure it out? |
Yes. You can fetch the image data using the editor's toDataURL() function. This data can also be converted into blob, if needed. Once you have the image data, you can send it to the server and then upload the dataURI/blob directly to S3. |
Thanks mate. Understood |
Any suggestions on a React equivalent of this? |
@Shane-Geary |
@PrashantNandanvar |
Is there any way to stop the editor from popping up a new tab when I click the download button? |
@yuban00018 |
const logImageContent = () => { and add button save and give the onClick ={logImageContent} you will get bs64 data of image and use it |
Hi, Is there any solution? |
Version
3.4.0
Development Environment
Windows 10
Current Behavior
All menu buttons are predefined
menu: ['crop', 'flip', 'rotate', 'draw', 'shape', 'text', 'filter'],
Question
How can I add custom menu buttons? For example 'save'?
The text was updated successfully, but these errors were encountered: