A script delcaration mistake at "Commponent & JS" documentation page.
Question
GrapesJS version
- 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
- I agree to follow this project's Code of Conduct
Answers (1)
The script is right above

ps: you can use Discussions if you're not reporting a bug
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6683
BUG: Modals close on mouseup event outside of modal rather than a full click
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 143.0.7499.169 Reproducible demo li...
Issue #4033
BUG: Wrong link and typo in the documentation
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? N/A Reproducible demo link https://github....
Issue #5112
BUG: GrapeJS/drag and drop not working for Brave on Linux and Wayland
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 1.51.110 Chromium: 113.0.5672.77 (...
Issue #5746
BUG: ColorPicker Offset incorrect when Panels are outside of Editor Container
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v122 Reproducible demo link https:/...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.