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)
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.
is there a way to add only once.
@artf Is there a way to add only once ?
Thanks
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1994
[question] Is it possible to add StyleManager property for only class name
Thank for this awesome library. I am gonna to add style controller to sector. This style will be for only one class name and won't set targ...
Issue #1817
Change HTML content while block is render in editor
Hello @artf I have one block into block manager like As per above script inside the block, i want to add dynamic HTML content while this bl...
Issue #1683
How to change id/class when new element drop on editor or render element with dynamic ip?
Hello @artf , Hope you are doing well. I have two questions regards dynamic blocks adding, 1) Is it possible to render the block with dynam...
Issue #1584
Not getting the Script of Block from editor.getComponents()
Below is the Component that I'm adding. this.editor.BlockManager.add('dob-mmyy-pii', { id: 'dob-mmyy', label: DOB (MM, YYYY) (PII), categor...
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.