[Bug] Calling setStyle does not update storage, unlike setComponents
Question
I'm configuring grapesjs in a way to allow users to edit the html and css source (by calling setComponents and setStyle respectively). There is an issue regarding the storeManager where the html is stored correctly, but the css is not. Here is a fiddle showing this: https://jsfiddle.net/szLp8h4n/189/
Steps to reproduce
- Go into the linked fiddle
- Run the fiddle
- Open the "extended" code panels by clicking the 'Open code' icon in the top right corner (make sure the screen is wide enough that you can see it).
- Change the html
- Reload the page (or re-run the fiddle)
- Notice your html changes were maintained 🙂
- Re-open the "extended" code panels, now change the css
- Reload the page (or re-run the fiddle)
- Notice your css changes were not maintained 🙁
Answers (1)
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.
Issue #1361
[Bug]: The drag placeholder should not be visible when there's no target
I'm using the latest release. Steps to reproduce:Configure grapesjs in such a way that the wrapper is not droppable.I have created a fiddle...
Issue #1699
[BUG] Link elements are not copyable/deletable
In the editor, if we have link element with some classes, the editor does not allow to copy/delete the element. GrapesJS version: v0.14.50S...
Issue #1614
[Bug]: adding css variables as style manager property
trying to add css variable to style manager causing error: Uncaught TypeError: Cannot read property 'toUpperCase' of undefined fiddle Am i...
Issue #1466
Editing Saved html editor.setComponents slider load issue
I am working on a project where i integrated grapesJs for users to build there templates, save them in database and edit these saved templa...
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.