Issue #1757💬 AnsweredOpened January 28, 2019by madcowtuning0 reactions

Remote storagemanager not working

Quick answerby madcowtuning

I figured out what is going on. If you set contentTypeJson "true" the load is working but the store is not because it is trying to send json data as POST data and server didn't parse it. If you set contentTypeJson "false" load is not working because it is in json format but then store is working. I modified grapes.min...

Read full answer below ↓

Question

Hello,

For 2 days I am fighting with the storageManager. I couldn't load template from remote file. Finaly I discovered that it is working only when I load grapesjs from https://unpkg.com/grapesjs. If I triy to load grapesjs from any min.js or dev dist files remote template load is not working. It is also working with the grapes.min.js file from dev dist folder but only if I rename the file to grapes.js. If I try to load it as grapes.min.js it is not working.

Answers (3)

madcowtuningJanuary 30, 2019

I figured out what is going on. If you set contentTypeJson "true" the load is working but the store is not because it is trying to send json data as POST data and server didn't parse it. If you set contentTypeJson "false" load is not working because it is in json format but then store is working. I...

artfFebruary 6, 2019

server didn't parse it

The server should take the POST content from the body of the HTTP request

madcowtuningFebruary 6, 2019

I fixed it by modifying this row: var res = parsable ? JSON.parse(text) : text; If I set contentTypeJson to false it couldn't load template because it is JSON type but can store the data. If I set contentTypeJson to true then it reads the template but then send POST data as json, php didn't parse i...

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.