Issue #1307πŸ’¬ AnsweredOpened July 23, 2018by Abhisheknanda13444630 reactions

To stop dynamically generated classes in grapes Editor

Quick answerby AnkitKachhadiya

hey @Abhisheknanda1344463 Can you try this code editor.CssComposer.getAll().reset();

Read full answer below ↓

Question

Hi @artf is there any Way to stop dynamically generating classes on reloading editor. let say when i add my custom class i.e "my_class" to two elements. whenever i am adding style to the element, it is reflecting in both the elements. but after reloading editor it generates class dynamically again. I want to stop that dynamically generating class for the elements.

Answers (3)

AnkitKachhadiyaβ€’ July 23, 2018

hey @Abhisheknanda1344463 Can you try this code editor.CssComposer.getAll().reset();

Abhisheknanda1344463β€’ July 25, 2018

@AnkitKachhadiya Hey I want to Stop dynamic classes Which is generatred every time when you refresh page.

artfβ€’ July 26, 2018

@Abhisheknanda1344463 This should explain you some stuff https://jsfiddle.net/szLp8h4n/267/ Please @Abhisheknanda1344463, next time, create a demo for this kind of questions

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.