grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

disable file upload in asset manager

Open krunal039 opened this issue 9 years ago • 7 comments

is there way to disable asset upload, we want to force user to use approved images only and that to via asset manager dialog.

krunal039 avatar Nov 28 '17 10:11 krunal039

Hi @krunal039,

The docs indicate that you can pass upload: false to disable it (see the comment in the "Examples" section). Have you tried doing that? I don't have time to test it out myself at the moment, but I'd be happy to help out more later if you try that out and are still having trouble.

ryandeba avatar Nov 28 '17 14:11 ryandeba

@krunal039 as already mentioned by Ryan, upload: false is the way to go

artf avatar Nov 30 '17 12:11 artf

How to hide the box of dragging it still appears i use please advise thanks. look false has no effect in my case, i mean its not working so i decided to stop and hide and make selecting image , and import from url the only options .

thanks again my friend

assetManager: {
         assets: images,
         upload: false/*,
         uploadText: 'Uploading is not available in this demo',*/
       },

shareefhiasat avatar May 15 '18 13:05 shareefhiasat

@shareefhiasat just use CSS

artf avatar May 17 '18 21:05 artf

@artf where do i change the css? I'm using the grapesjs-preset-webpage

sakshigarg9 avatar Feb 27 '19 11:02 sakshigarg9

where do i change the css?

Wherever you want, just place it after GrapesJS' CSS

artf avatar Mar 03 '19 14:03 artf

upload:false did not work for me :(

ehsantalkhouncheh avatar Nov 05 '21 14:11 ehsantalkhouncheh