CMS (Grapes JS)

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
vision
Posts: 23
Joined: 01 Dec 2022, 05:35

CMS (Grapes JS)

Post by vision » 03 Jul 2023, 10:28

2022.10 branch.

Hello!
I can't find how to enable drag and drop feature of GrapesJs cms.

I tried like this, but it doesn'work:

Code: Select all

assetManager: {
		assets: [],
                noAssets: '',
                stylePrefix: 'am-',
                upload: '',
                uploadName: 'files',
                headers: {},
                params: {},
                credentials: 'include',
                multiUpload: true,
                autoAdd: true,
                customFetch: undefined,
                uploadFile: undefined,
                embedAsBase64: true,
                handleAdd: undefined,
                beforeUpload: undefined,
                showUrlInput: true,
                custom: false,
                dropzone: true,
                openAssetsOnDrop: true,
                dropzoneContent: '',
			},
Attachments
grapes1.png
grapes1.png (236.2 KiB) Viewed 3866 times

kdim95
Advanced
Posts: 207
Joined: 26 Aug 2022, 12:17

Re: CMS (Grapes JS)

Post by kdim95 » 04 Jul 2023, 13:12

It seems to me like the file drag option (gjs-am-file-uploader class selector) has just been hidden.
It doesn't seem to be supported, because they want to work with the "Media" items in Aimeos.
You would have to implement the logic for uploading images through the drag feature yourself, or just use the "Media" tab.

vision
Posts: 23
Joined: 01 Dec 2022, 05:35

Re: CMS (Grapes JS)

Post by vision » 04 Jul 2023, 13:26

kdim95 wrote: 04 Jul 2023, 13:12 It seems to me like the file drag option (gjs-am-file-uploader class selector) has just been hidden.
It doesn't seem to be supported, because they want to work with the "Media" items in Aimeos.
You would have to implement the logic for uploading images through the drag feature yourself, or just use the "Media" tab.
Thank You!

Post Reply