Issue #759💬 AnsweredOpened January 15, 2018by gordon-matt0 reactions

Problems trying to load and save

Quick answerby gordon-matt

I have updated the original issue with a workaround and made a suggestion. Feel free to close either this issue or the original under the MJML repo, as per your preference.

Read full answer below ↓

Question

Could someone please let me know the required format of the response from the storage save action? I originally posted an issue under the mjml repo regarding this, but there's been no answer and moreover, I think it's probably more suited to be asked here in the main GrapesJS repo (as it pertains to GrapesJS in general and not just the MJML extension). The original post can be found here: GrapesJS MJML Issue 54. I have made some progress, but as I said above, I am still confused as to the required response for the save action.

Answers (3)

gordon-mattJanuary 16, 2018

I have updated the original issue with a workaround and made a suggestion. Feel free to close either this issue or the original under the MJML repo, as per your preference.

artfJanuary 16, 2018

Hi @gordon-matt and apologize for the late response. As you already get it, the store expects nothing, but onResponse callback is always executed therefore you get that error. Probably just putting typeJson && text && typeof text === 'string' might solve the issue.

lock[bot]September 18, 2019

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.

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.