Issue #1333💬 AnsweredOpened August 1, 2018by kripper0 reactions

Bug in WebPage Demo

Quick answerby artf

Only class-based selectors are tracked and therefore could be removed, others are left.

Read full answer below ↓

Question

To reproduce: 1) Open https://grapesjs.com/demo.html in incognito mode. 2) Import this code: 3) Clear Canvas 4) Press Import. Result: The code is not cleared. There is thrash from the previous imported code. Expected Result: Code should be clean.

Answers (3)

artfAugust 2, 2018

Only class-based selectors are tracked and therefore could be removed, others are left.

kripperAugust 2, 2018

What about id-based selectors? grapesJS is adding them all the time. The problem can also be reproduced with just this code:

<style>* {
  #bck-img7.wrapper-half-left {
    background-image:url("/dummy.png") !important;
  }
</style>
lock[bot]September 17, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.