Issue #597💬 AnsweredOpened November 30, 2017by DeathStapler2 reactions

StorageManager: Loading from remote storage

Quick answerby DeathStapler1

So when I set: contentTypeJson: true, resulting in: I can now load from the database. But, now it will not save, because it is sending the data as JSON. How can I send the data as POST variables, but receive it as JSON?

Read full answer below ↓

Question

Hi, I'm trying to read the HTML and CSS from my database. When I try to load it into the editor, nothing displays. I can store the data just, just cannot load it. Is this the correct format for the data when you are loading it? Content-type Preview Response

Answers (3)

DeathStaplerDecember 6, 2017

So when I set: contentTypeJson: true, resulting in: I can now load from the database. But, now it will not save, because it is sending the data as JSON. How can I send the data as POST variables, but receive it as JSON?

duskhackerDecember 1, 2017

@DeathStapler This is what mine looks like: The thing that jumps out at me at first is that assets, components and styles should be arrays, you have empty strings. The Content-Type is correct.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.