What is the expected behavior?
... On getJS, i want the relevant js code inside the editor, i am not sure if my expectation is correct, if it is not, please let me know how can i achieve this
What is the current behavior?
... getJS({component}) is returning empty strings ''
If is necessary to execute some code in order to reproduce the bug, paste it here below:
The getJs returns the JS of your component model (the one you would place inside model.defaults.script), not the component view.
Please read carefully Components & JS
GrapesJS version
What browser are you using?
Version 115.0.5790.171 (Official Build) (64-bit)
Reproducible demo link
https://codesandbox.io/s/1r0w2pk1vl?file=/index.html
Describe the bug
How to reproduce the bug?
What is the expected behavior? ... On getJS, i want the relevant js code inside the editor, i am not sure if my expectation is correct, if it is not, please let me know how can i achieve this
What is the current behavior? ... getJS({component}) is returning empty strings ''
If is necessary to execute some code in order to reproduce the bug, paste it here below:
@ar
Code of Conduct