Issue #809💬 AnsweredOpened January 26, 2018by maxtacco0 reactions

CSS not added when blocks are drag and dropped after core:canvas-clear command invoked

Quick answerby artf

I just merged https://github.com/artf/grapesjs-blocks-basic/pull/4 which solves the issue. I'll publish soon a new release of the plugin

Read full answer below ↓

Question

I'm using grapesjs-blocks-basic plugin that has a number of column blocks. When I drag and drop these blocs onto the canvas they are displayed correctly for the first time and I can see the associated CSS added in the code viewer. But, once I invoke 'core:canvas-clear' command and drag-and drop the same blocks they are not displayed in canvas correctly anymore and CSS is missing in the code viewer.

It looks like 'e.CssComposer.clear();' call in the 'core:canvas-clear' command causes this issue.

GrapesJS version: 0.13.5/0.13.8

Answers (3)

maxtaccoJanuary 29, 2018

Thank you!

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.