Issue #4606Opened September 22, 2022by bit-ocean0 reactions

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)

artfSeptember 25, 20220 reactions

The script is right above ccc

ps: you can use Discussions if you're not reporting a bug

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.