Issue #743Opened January 11, 2018by suchithmahadi0 reactions

editor.getComponents() load multiple times when refreshed.

Question

Hello, editor.getComponents().add('<div class="grid-stack" style="height:800px;"></div>');

adds multiple times when refreshed, how stop this. it should add only once.

Answers (3)

artfJanuary 11, 20180 reactions

well if you add, the editor stores the template (local/remote), after refresh editor loads it and you still use add... well, it's a correct behavior.

suchithmahadiJanuary 11, 20180 reactions

is there a way to add only once.

suchithmahadiJanuary 12, 20180 reactions

@artf Is there a way to add only once ?

Thanks

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.