grapesjs
grapesjs copied to clipboard
A script delcaration mistake at "Commponent & JS" documentation page.
GrapesJS version
- [X] I confirm to use the latest version of GrapesJS
What browser are you using?
irrelevant to the issue
Reproducible demo link
https://grapesjs.com/docs/modules/Components-js.html#basic-scripts
Describe the bug
Hey, rather than creating a pull request for such a small change, I share it here.
The introduction code in Basic Scripts at https://grapesjs.com/docs/modules/Components-js.html#basic-scripts misses a keyword, that may confuse or mislead new users as there is no other example of declaring component script on the page:
model: {
defaults: {
script,
should be:
model: {
defaults: {
script: script,
Code of Conduct
- [X] I agree to follow this project's Code of Conduct