[Questions]custom traits is not saving in Remote storage manager
Question
I added more traits from the default input traits. but that traits are not saving in the grapesjs JSON metadata.
storageManager: {
type: 'remote',
autosave: false,
autoload: false,
stepsBeforeSave: 1,
contentTypeJson: true,
urlStore: ''http://localhost:8009/template/save"
}
the above is my storage configuration in grapesjs init function.

the above image shows that I have custom traits called entity and its field after I saved and come back that those traits are not shown even though the name values also not showing in the traits name input box as shown in below images:

Answers (1)
I added more traits from the default input traits. but that traits are not saving in the grapesjs JSON metadata
Traits shouldn't be stored, are not extensions of your Components but just a way to update your Components' props/attributes. The problem probably because you're not following the first rule
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1274
Remote storage option is not sending in $_POST the JSON structure
Hi @artf! I'm working to adapt your content builder in our system using the latest release v.0.14.21. I have set up the following configura...
Issue #2963
Template loaded via remote storage is not displayed in the editor
Hi, I am trying to load a default template from remote storage into the editor but nothing is displayed. As part of of the initialization I...
Issue #1985
[BUG] Autosave with remote storage doesn't send network requests
OS: Windows 10 Browser: Chrome 73 GrapesJS version: 0.14.57 I have remote storage configured using this call to grapesjs.init(): While I se...
Issue #384
Create and Edit Template into Database
This is my code to Create a new template and insert the inline html with style into the database : I am able to insert the template-data in...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.