Issue #674Opened December 22, 2017by nestor91sanchez1 reactions

custom component don't save

Question

my custom component don't save in wrapper editor, when refresh the page the editor load all components less my component. the web inspector show a empty div.

<img width="531" alt="screen shot 2017-12-22 at 3 14 08 pm" src="https://user-images.githubusercontent.com/2053807/34309887-d8a7a5e8-e72a-11e7-823e-5aeea5197866.png"> <img width="1543" alt="screen shot 2017-12-22 at 3 13 50 pm" src="https://user-images.githubusercontent.com/2053807/34309888-d8bcf0a6-e72a-11e7-8f21-e8a28c60c6fa.png">

Answers (2)

afoteyDecember 22, 20171 reactions

If you're referring to having your generated content save and persist upon refresh, try this:

var editor = grapesjs.init({ container : '#gjs', storageManager: { // type: 'none' id: 'gjs-', // Prefix identifier that will be used inside storing and loading type: 'local', // Type of the storage autosave: true, // Store data automatically autoload: false, // Autoload stored data on init stepsBeforeSave: 1, // If autosave enabled, indicates how many changes are necessary before store method is triggered storeComponents: false, // Enable/Disable storing of components in JSON format storeStyles: false, // Enable/Disable storing of rules/style in JSON format storeHtml: true, // Enable/Disable storing of components as HTML string storeCss: true, // Enable/Disable storing of rules/style as CSS string },

lock[bot]September 18, 20190 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.