How Do I Hide / Disable Dropzone in AM Modal
Hi @HeyWrecker ! As far as I know this is only possible by overriding the AM Modal's style like so: You can also see this issue regarding completely disabling image upload. Cheers !
Read full answer below ↓Question
Hello, I've been reviewing the documentation and this link, trying to find the right configuration setting to disable the dropzone in the Asset Manager Modal. In my config, I have set the upload attribute to 0, and yet the dropzone still appears, is clickable, displays the system file browser, and allows me to select a file. I would like to only allow people to select images from a pre-existing library, not upload images, but it is unclear to me how to disable this fully. Additionally, as a side question- does the Asset Manager handle pagination of files at all? We have a pre-existing media l...
Answers (3)
Hi @HeyWrecker ! As far as I know this is only possible by overriding the AM Modal's style like so: You can also see this issue regarding completely disabling image upload. Cheers !
@mcottret Hi Mathieu! Thanks for the advice! I'll try those steps out. I genuinely appreciate such a quick reply!
I see, sorry for the misunderstanding :) I didn't know about this specific behaviour, but the assets from the loaded configuration might override the initial set value. You could try updating the assets list after loading the configuration like the following:
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3596
Values are not escaped
GrapesJS code is open to XSS issues because values are inserted into DOM without escaping, e.g. https://github.com/artf/grapesjs/blob/dev/s...
Issue #4735
resetId types mismatch
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? n/a Reproducible demo link n/a Describe th...
Issue #1341
[Question] How to work with Custom Components
Hello, I have some questions and issues about and with the grapes editorProblem 1 In a component, which class is there extended? Is it real...
Issue #5135
Incorrect type definition for StyleManager.addProperty
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? All Reproducible demo link None Describe t...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.