Issue #348○ OpenOpened September 28, 2017by sonnylloyd0 reactions

Script tag on component after save and reload runs infinit

Open question

No community answers yet. Open the original discussion on GitHub to share your solution.

Question

I am in the middle of working on some custom components/blocks. To achieve this i have been using the api docs and using your grapejs plugins as examples. This file in particular https://github.com/artf/grapesjs-navbar/blob/master/src/components.js . The issue i have is on save and reloading of the page. the script tag runs infinity. Here is my code just in case its me. domc.addType('iconbox', { model: defaultModel.extend({ defaults: Object.assign({}, defaultModel.prototype.defaults, { draggable: '.col', droppable: false, copyable: false, removable: false, script: function () { console.log('s...

Answers (0)

No answers yet.

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.