Replies: 1 comment 1 reply
-
You can save the component JSON and reuse it later const component = editor.getSelected();
const cmpJSON = JSON.parse(JSON.stringify(component));
// ...
editor.getSelected().append(cmpJSON); |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I want to create a new block using the design from other blocks such as input, select, etc. and save the entire page (form) template in the database.
I need to retrieve all existing blocks on the editor canvas as an array and send them as a request to the server.
I have checked the APIs but I didn't find a suitable one for getting all existing blocks on the editor canvas.
It seems that using APIs like "getProjectData" is not suitable for my goal.
Am I correct?
Or is there any other solution for this?
Beta Was this translation helpful? Give feedback.
All reactions