我使用grapes.js
编辑器,我想在一列插入StyleManager
和特征管理器。这怎么可能?
我的代码:
styleManager: {
traitsManager: {},
sectors: [{
open: true,
buildProps: ['text-align', 'width', 'height', 'max-width', 'min-height', 'margin', 'font-family', 'font-size', 'font-weight',
'letter-spacing', 'color', 'line-height', 'text-decoration', 'font-style','background-color','background'],
property: 'text-align',
defaults: 'left',
properties: [{
property: 'text-align',
list: [
{ value: 'left'},
{ value: 'center'},
{ value: 'right'}
]
}]
}],
}