Issue #3099💬 AnsweredOpened October 27, 2020by BanksyDog0 reactions

Components & Js - Load Template Re-Post

快速解答by GoodPHP

Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.

Read full answer below ↓

Question

I have the same issue reported in Components & Js - Load Template #1906

Components with JS work fine when dropped, and on first export. However, if the page is refreshed, js is not loaded which causes issues.

The JS is also excluded from any exports after a refresh.

Thanks for the help.

Answers (2)

GoodPHPOctober 30, 2020

Hi,

If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/

We specialise on GrapesJS.

artfNovember 9, 2020

Ensure to have the script on a defined Component and not Block, then you have to store and load the JSON structure, not HTML/CSS

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.