The css classes are removed and the autogenerated ids for each html tags gets changed ( Example : ivj5m-2) after each reload
Question
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link Not there Describe the bug How to reproduce the bug? Install the grapes js in react app Go to the editor and drag a component. ( Example : text component) Style the component using the style manager save it into DB and see the code in the editor Reload the page see the code in the editor What is the expected behavior? The html tag ids and css for that ids should not be changes or erased even though if reload the editor What is the current behavior? If we are reloading...
Answers (4)
Please guide me on this
Disable autoload: true you're loading everything twice
Thanks @artf . This fixed my issue
Thanks for reporting this, @Sudhin35. Great question about The css classes are removed and the autogenerated ids for each html tags gets changed ( Example : ivj5m-2) after each reload. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS document...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3948
My Options ( in traits ) for select component gets resetted every time after each reload of page
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link Not there De...
Issue #6543
Panel not removed
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link none Describ...
Issue #6458
Sector.setName doesn't work
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://jsfi...
Issue #5173
Editor.Css.setRule API not working as expected, it is not updating the rule existing rule.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 112.0.5615.137 (Official Build) (a...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.