Issue #2982šŸ’¬ AnsweredOpened August 28, 2020by mitcht0 reactions

Executing editor.load(x) on x = editor.store() results in error.

Quick answerby mitcht

Yes, I see that .load takes a callback function. I'll admit, I'm probably doing this wrong. I only started using grapesJS a few days ago. If my bug report is not truly a bug, how would one store the current state of the editor (possibly as json), then reload it? Is there a specific function to call that accepts a vari...

Read full answer below ↓

Question

Version: 0.16.18 Are you able to reproduce the bug from the demo? [X ] Yes [ ] No What is the expected behavior? I would expect that assets, components, css, html, and styles would be repopulated. Describe the bug detailed I am working on an existing system that has a database schema preventing me from using the StorageManager built into grapesjs. I am attempting to store the current state of the GrapesJS editor into a javascript variable, and then reload it - using editor.store() and editor.load() respectively. According to the documentation, these features are listed as part of the editor,...

Answers (3)

mitcht• August 28, 2020

Yes, I see that .load takes a callback function. I'll admit, I'm probably doing this wrong. I only started using grapesJS a few days ago. If my bug report is not truly a bug, how would one store the current state of the editor (possibly as json), then reload it? Is there a specific function to call...

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.