Replies: 2 comments 6 replies
-
(I tried pushing this to a branch in the grapesjs repo, but I got permission denied. Also, I don't see any way of adding Labels to this... not sure if it's related to permissions) |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should be able to pass that option as default already by using |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
As mentioned in issue 324, users that want to edit source HTML will see that the props are removed from the HTML, meaning that upon save, the new document will not recognize components.
Solution: withProps option
In components.md, a flag is documented to including component properties as data-gjs-* attributes. We can use this same code by providing a global config to allow the necessary data to be preserved. The flag should default as false to preserve existing behaviour.
benjgrad/grapesjs@9e00994
Beta Was this translation helpful? Give feedback.
All reactions