grapesjs-preset-webpage icon indicating copy to clipboard operation
grapesjs-preset-webpage copied to clipboard

Body Element is missing class="gjs-dashed"

Open ghost opened this issue 6 years ago • 4 comments

Dashed outlines are missing

image

ghost avatar Jan 31 '19 23:01 ghost

It's strange. I have the same problem.

pooriamo avatar Sep 13 '19 15:09 pooriamo

I fixed this by a piece of code.

const frame = document.getElementsByClassName('gjs-frame')[0]
frame.contentDocument.body.classList.add('gjs-dashed')

Place this after the config object definition.

pooriamo avatar Sep 13 '19 15:09 pooriamo

Click this button image

Or run:

var pn = editor.Panels;
pn.getButton('options', 'sw-visibility').set('active', 1);

scott-coates avatar Nov 12 '19 11:11 scott-coates

Hello Everyone. How can i remove that dashed lines because i don't want to see that dashed lines by default. Thanks in advance

WebDevXpert avatar Dec 01 '21 07:12 WebDevXpert