mirror of https://github.com/artf/grapesjs.git
6 changed files with 310 additions and 5 deletions
@ -0,0 +1,50 @@ |
|||
<template> |
|||
<div> |
|||
<div class="panel__top" id="panel__top5"> |
|||
<div class="panel__basic-actions" id="panel__basic-actions5"></div> |
|||
<div class="panel__switcher" id="panel__switcher5"></div> |
|||
</div> |
|||
|
|||
<div class="editor-row"> |
|||
<div class="editor-canvas"> |
|||
<div class="gjs" id="gjs5"> |
|||
<h1>Hello World Component!</h1> |
|||
</div> |
|||
</div> |
|||
<div class="panel__right" id="panel__right5"> |
|||
<div class="layers-container" id="layers-container5"></div> |
|||
<div class="styles-container" id="styles-container5"></div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div id="blocks5"></div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
module.exports = { |
|||
mounted() { |
|||
const utils = require('./demos/utils.js'); |
|||
const editor5 = grapesjs.init(utils.gjsConfigStyle); |
|||
editor5.Panels.addPanel(Object.assign({}, utils.panelTop, { |
|||
el: '#panel__top5' |
|||
})); |
|||
editor5.Panels.addPanel(Object.assign({}, utils.panelBasicActions, { |
|||
el: '#panel__basic-actions5' |
|||
})); |
|||
editor5.Panels.addPanel(Object.assign({}, utils.panelSidebar, { |
|||
el: '#panel__right5' |
|||
})); |
|||
editor5.Panels.addPanel(Object.assign({}, utils.panelSwitcher, { |
|||
el: '#panel__switcher5' |
|||
})); |
|||
window.editor5 = editor5; |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style> |
|||
.panel__switcher { |
|||
position: initial; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,31 @@ |
|||
--- |
|||
title: Style Manager |
|||
--- |
|||
|
|||
# Style Manager |
|||
|
|||
Coming soon |
|||
|
|||
[[toc]] |
|||
|
|||
|
|||
## Built-in properties |
|||
|
|||
Here you can find all the available built-in properties that you can use inside Style Manager via `buildProps`: |
|||
|
|||
`float`, `position`, `text-align`, `display`, `font-family`, `font-weight`, `border`, `border-style`, `border-color`, `border-width`, `box-shadow`, `background-repeat`, `background-position`, `background-attachment`, `background-size`, `transition`, `transition-duration`, `transition-property`, `transition-timing-function`, `top`, `right`, `bottom`, `left`, `margin`, `margin-top`, `margin-right`, `margin-bottom`, `margin-left`, `padding`, `padding-top`, `padding-right`, `padding-bottom`, `padding-left`, `width`, `heigth`, `min-width`, `min-heigth`, `max-width`, `max-heigth`, `font-size`, `letter-spacing`, `line-height`, `text-shadow`, `border-radius`, `border-top-left-radius`, `border-top-right-radius`, `border-bottom-left-radius`, `border-bottom-right-radius`, `perspective`, `transform`, `transform-rotate-x`, `transform-rotate-y`, `transform-rotate-z`, `transform-scale-x`, `transform-scale-y`, `transform-scale-z`, `color`, `background-color`, `background`, `background-image`, `cursor` |
|||
|
|||
Example usage: |
|||
```js |
|||
... |
|||
styleManager : { |
|||
sectors: [{ |
|||
name: 'Dimension', |
|||
buildProps: ['width', 'min-height'] |
|||
},{ |
|||
name: 'Extra', |
|||
buildProps: ['background-color', 'box-shadow'] |
|||
}] |
|||
} |
|||
... |
|||
``` |
|||
Loading…
Reference in new issue