Closed Alababdiy closed 2 months ago
Hey @Alababdiy, I wasn't able to reproduce the issue you described in the JSFiddle.
@Alababdiy I was unable to reproduce the issue using the link provided. However, it seems like the issue is that GrapesJS doesn't allow adding or defining a component after it has been initialized.
GrapesJS version
What browser are you using?
Chrome 91V
Reproducible demo link
https://jsfiddle.net/8tsj5vpb/
Describe the bug
I'm encountering an issue with GrapesJS where traits defined for a custom component are not being displayed after reloading the editor. The traits work correctly when the component is first added, but upon reloading the editor (e.g., refreshing the page), the traits no longer appear in the traits panel.
Steps to Reproduce:
Expected Behavior: The traits defined for the custom component should appear in the traits panel after reloading the editor.
Actual Behavior: The traits do not appear in the traits panel after reloading the editor. ( it showing only id & title )
Code Snippet: Here is the relevant part of my code:
Code of Conduct