GrapesJS / components-countdown

Simple countdown component for the GrapesJS Editor
BSD 3-Clause "New" or "Revised" License
22 stars 37 forks source link

How can I load the component again? #3

Closed omarmd1986 closed 6 years ago

omarmd1986 commented 6 years ago

Hi, I'm using the grapes JS library to create an HTML. I added the countdown plugin and everything goes fine the first time. The user creates the HTML and clicks on a button to save the changes. I get the HTML, CSS, and JS generated by Grapes JS and, save them in my database for future use. When I try to load the HTML, CSS, and JS generated by grapes JS to edit the change I've saved the component countdown doesn't work.

My question: How can I save my template whit component that needs JS and load again and the component still by a component? The grapes js remove all the scripts.

artf commented 6 years ago
  1. Use the latest version
  2. Don't load templates from HTML/CSS/JS, use JSON