Issue #2894💬 AnsweredOpened July 14, 2020by HeyWrecker3 reactions

How Do I Hide / Disable Dropzone in AM Modal

Quick answerby mcottret1

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)

mcottretJuly 15, 2020

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 !

HeyWreckerJuly 15, 2020

@mcottret Hi Mathieu! Thanks for the advice! I'll try those steps out. I genuinely appreciate such a quick reply!

mcottretJuly 16, 2020

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

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.