Style sections are duplicated
Question
Hello Guys
I'm using: "grapesjs": "0.16.12", "grapesjs-preset-webpage": "0.1.11",
and in the css edit area i get this strange behavior: <img width="1527" alt="Screen Shot 2020-06-19 at 00 39 13" src="https://user-images.githubusercontent.com/223112/85069933-01cbdd00-b1c6-11ea-909b-7b77a048eefe.png"> a lot of the sections are duplicated!
this is the repository with my code: https://github.com/levansuper/grapes
Answers (3)
@artf in my case the problem was that i was loading the module using node not directly in html. In the end I found and answer:
import gjsPresetWebpage from "grapesjs-preset-webpage";
bla, bla, bla...
GrapesJS.init({
...
plugins: [gjsPresetWebpage],
pluginsOpts: {
[gjsPresetWebpage]: {
customStyleManager: [{
name: 'General2',
open: false,
buildProps: ['float', 'display', 'position', 'top', 'right', 'left', 'bottom']
}]
}
})
Hi Levan, please try to follow the template from the preset page https://github.com/artf/grapesjs/blob/gh-pages/demo.html
@artf in my case the problem was that i was loading the module using node not directly in html. In the end I found and answer:
import gjsPresetWebpage from "grapesjs-preset-webpage"; bla, bla, bla... GrapesJS.init({ ... plugins: [gjsPresetWebpage], pluginsOpts: { [gjsPresetWebpage]: { customStyleManager: [{ name: 'General2', open: false, buildProps: ['float', 'display', 'position', 'top', 'right', 'left', 'bottom'] }] } })
I found out if you pass styleManager: { clearProperties: 1 } to GrapesJS also will resovle the problem
Related Questions and Answers
Continue research with similar issue discussions.
Issue #609
CSS editing duplicates body properties
It's still duplicating body sections and properties: When I pull it up, this is what it looks like: <img width="472" alt="screen shot 2017-...
Issue #1358
Create link only on "OK" button press
Hello everyone, I overwrote the default 'Link' acton of the rich text editor: <img width="1274" alt="screen shot 2018-08-13 at 1 58 43 pm"...
Issue #2543
How to remove the right side bar?
<img width="1033" alt="Annotation 2020-02-02 032330" src="https://user-images.githubusercontent.com/6602723/73597835-77af0f00-456b-11ea-928...
Issue #678
Help Wanted
Hello, 2 queries : 1) How to Add a LOGO as in Demo webpage. 2) How to move the block manager, Style Manager from Right Side to Left Side. T...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.