Prevent drop/paste images from computer. #5056
-
Hello Arthur! I have just discovered that we can drop files from computer or paste it inside a text file and it converts into base64 images. I'm looking in the code to see if there's anything that might help or for the configuration I'm looking for. But the way I'm imagining doing it is using the component:add event and getting the image, but that's not user friendly https://www.loom.com/share/f2f91e20a1f545528e007f2e22d2789d Thank you Arthur. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The config: assetManager:{
dropzone:false
}, Even with the above config, it continues to drop images from the computer to GrapesJs |
Beta Was this translation helpful? Give feedback.
-
There is an option in assetManager that allows you to disable the embed of assets. If you have properly configured the asset upload endpoint, that will all allow to upload images to your backend when the user drops images in the canvas. |
Beta Was this translation helpful? Give feedback.
There is an option in assetManager that allows you to disable the embed of assets. If you have properly configured the asset upload endpoint, that will all allow to upload images to your backend when the user drops images in the canvas.