Components & Js - Load Template Re-Post
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)
Hi,
If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/
We specialise on GrapesJS.
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.
Issue #1341
[Question] How to work with Custom Components
Hello, I have some questions and issues about and with the grapes editorProblem 1 In a component, which class is there extended? Is it real...
Issue #1516
ckeditor 5 [enhancement]
Hey @artf , as described in the following task I made a build of the ckeditor 5 which works with GrapesJS, however some of the functionalit...
Issue #1905
[QUESTION] Not editable block after import template
Have the same issue like in 1408. You said that JSON should be imported instead of the HTML. Can you tell me please how to import JSON temp...
Issue #1908
[question] Cannot read property 'indexOf' of undefined
I found a previous result here: https://github.com/artf/grapesjs/issues/1772 however I can still not get it to work, using the most basic s...
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.