Remove upload image option and disable (x) icon for default images
Question
I want to remove the "Drop files here or click to upload" section and also disable the (x) cross icon next tothe default images, not allowing the user to delete default images.
@artf where do i change the css? I'm using the grapesjs-preset-webpage
Originally posted by @sakshigarg9 in https://github.com/artf/grapesjs/issues/578#issuecomment-467823560
Answers (3)
One easy way to achieve this would be adding some CSS rules:
.gjs-am-file-uploader { display: none; }
.gjs-am-assets-cont { width: 100%; }
And so on ... :)
Thanks worked! But I'm unable to remove the (x) icon next to the default images despite using
.gjs-am-close{ display: none; }
Great, just use that css rule to hide it.. :)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1090
How to remove toolbar icons
Hi artf, Please let me know how we can remove the toolbar icons like when user click on image element then I don't want delete icon or othe...
Issue #1719
Event while click on image from asset modal
Hello @artf , Hope you are doing well. I am working on asset-manager. I have total 5 images as a default asset-manager image. I want to do...
Issue #1322
Disable editing in Preview Mode.
@artf How can we disable editing in the preview mode and re-enable it when preview mode off. I want to remove editor and hide toolbar in th...
Issue #1816
Not allowing to upload same image on same the position after delete that image
Ajax call which is uploading image file in assests folder It's working fine to add an image from the local. But in another scenario, It's n...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.