Closed sridharK64 closed 1 month ago
Hi, @sridharK64 thank you for your report, can you elaborate on your issue, please? As we only have:
Could you tell us what you're trying to achieve?
@sridharK64 I got what you mean but the next time try to elaborate a bit better.
To trigger the preview on load, this would be enough
editor.onReady(() => {
editor.runCommand('core:preview')
});
but in your example, you're using @grapesjs/react
with full custom UI, which means you have to implement your own implementation of how to handle the preview with your react components.
GrapesJS version
What browser are you using?
latest
Reproducible demo link
https://stackblitz.com/edit/grapesjs-react-custom-ui-nrqcgn?file=src%2FApp.tsx
Describe the bug
How to reproduce the bug?
What is the expected behavior? ...
What is the current behavior? ...
If is necessary to execute some code in order to reproduce the bug, paste it here below:
Code of Conduct