Issue #1187💬 AnsweredOpened June 9, 2018by endersaka0 reactions

Why dashed lines do not show around components?

Quick answerby ssabrewolf

To show the dashed lines you need to run in on editor load event editor.runCommand('sw-visibility');

Read full answer below ↓

Question

After long time I am trying again with GrapesJS. I am following the Getting Started page and I am stuck to this step https://github.com/artf/grapesjs/wiki#components In fact, I am trying to "highlight" the components with a dashed line, pressing the "eye" button, as explained in the tutorial, but it does not work. GrapesJS version is 0.14.17. I am using Mac OS X. I tested on both Safari and Chrome. The Web Demo works correctly. Actually, when I press the "eye" button it changes the CSS of the components (as you can see in the attached image) but the modification is not visible in the canvas....

Answers (3)

ssabrewolfJune 10, 2018

To show the dashed lines you need to run in on editor load event editor.runCommand('sw-visibility');

endersakaJune 11, 2018

Thanks.

Maybe I don't remember well but I am almost sure that it is not explained in the documentation tutorial.

artfJune 14, 2018

I think it's just because you need to indicate the height for your document

html,
body {
	height: 100%;
}

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.