grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[QUESTION] Different POST params

Open AlessandroMagri opened this issue 8 years ago • 3 comments

Hi, we are tring to integrate your grapejs in an existing web application. We need to load and store data remotely adding some POST params (different in the load call and in the push call). Is it possible?

In the case that all works well, can you support us for some customization?

AlessandroMagri avatar Feb 15 '18 17:02 AlessandroMagri

Please read maybe it wil help -> https://github.com/artf/grapesjs/issues/597

v8jupiter avatar Feb 16 '18 10:02 v8jupiter

@AlessandroMagri you basically set custom parameters in the storageManager configuration:

grapesjs.init({
	...
	storageManager: {
            type: 'remote',
			...
            params: {
				// You custom parameters
				_token: '...'
			}, 
   }
});

Those are used for both the load and store requests, if you want you can find here #831 how to customize the already initiliazed storage manager

artf avatar Feb 26 '18 22:02 artf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 17 '19 22:09 lock[bot]