Getting component type JSON dynamically #5146
Unanswered
gustavohleal
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You can't have the JSON of the component if the component is not created. You can always create one, get its JSON and then remove it from the document |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm working on a converter from an old HTML generated by an old editor from my company. We already have an converter that gets that old html and creates a new html based on grapes old way to load a project. Now i'm want to make this converter generate a projectData like JSON to better load and avoid some errors that was occurring.
So, my question here is:
Is there a way to get the JSON form generated by the
editor.getProjectData()
function from the component type that exists in theDomComponents
without having the component rendered in the canvas?Something like:
If there is not a way to do this by default, where could I find in the source code the generation of the projectData to get some ideas of how to do this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions