Remote storage option is not sending in $_POST the JSON structure
Question
Hi @artf! I'm working to adapt your content builder in our system using the latest release v.0.14.21. I have set up the following configuration of the StorageManager: storageManager: { type: 'remote', stepsBeforeSave: 1, autoload: true, autosave: false, urlStore: '/save', urlLoad: '/load', contentTypeJson: true },
With contentTypeJson = true I can load the content correctly from load action. Also I created a new button to save the content manually using the call "editor.store()". The problem comes up now in the action save I never receive in $_POST the json structure with HTML, COMPONENTS, ASSETS, ... If I switch off the parameter contentTypeJson: false then I'm able to receive the json structure in $_POST but the data is not loading properly. So I don't now exactly if you can support me. I've just read all the issues closes and I don't find the correct solution.
Thanks in advance.
Answers (3)
Thanks a lot! It works like a charm! Great Job. We are going to work in different new plugins so we will include them as open source as well. I'll keep you inform.
We're using fetch under the hood so check this out https://stackoverflow.com/questions/36669911/post-not-retrieving-data-from-javascripts-fetch and let me know
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1985
[BUG] Autosave with remote storage doesn't send network requests
OS: Windows 10 Browser: Chrome 73 GrapesJS version: 0.14.57 I have remote storage configured using this call to grapesjs.init(): While I se...
Issue #384
Create and Edit Template into Database
This is my code to Create a new template and insert the inline html with style into the database : I am able to insert the template-data in...
Issue #620
Remote Storage
I'm trying to use the remote storage but no success, with the resolved issues I manage to adjust eveything as it best, but editor do not re...
Issue #2425
[Questions]custom traits is not saving in Remote storage manager
I added more traits from the default input traits. but that traits are not saving in the grapesjs JSON metadata. the above is my storage co...
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.