grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

A script delcaration mistake at "Commponent & JS" documentation page.

Open bit-ocean opened this issue 3 years ago • 0 comments

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

bit-ocean avatar Sep 22 '22 10:09 bit-ocean