Issue #2122💬 AnsweredOpened July 8, 2019by zyxnowell1 reactions

Adding script to content with chart js

Quick answerby zyxnowell1

I just figured it out, you just need to declare your custom JS in the init method and set allowSripts to true

Read full answer below ↓

Question

Hello I am trying to add a Graph JS block with this code but whenever I would drag the new block I would get an error: How do I add a script to a content to generate the chart? Also are third party scripts allowed in GrapesJS or are there properties that needs do be defined in initializing the editor? Thank you!

Answers (1)

zyxnowellJuly 8, 2019

I just figured it out, you just need to declare your custom JS in the init method and set allowSripts to true

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.