Skip to content

Commit

Permalink
#1 fix duplicate links in style manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisB9 committed Aug 23, 2020
1 parent 6872dd5 commit d082fe1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
31 changes: 1 addition & 30 deletions src/Resources/private/js/styleManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,5 @@ export default (editor, config) => {
const sm = editor.StyleManager;
const csm = config.customStyleManager;

sm.getSectors().reset(csm && csm.length ? csm : [{
name: config.textGeneral,
open: false,
buildProps: ['float', 'display', 'position', 'top', 'right', 'left', 'bottom'],
},{
name: config.textLayout,
open: false,
buildProps: ['width', 'height', 'max-width', 'min-height', 'margin', 'padding'],
},{
name: config.textTypography,
open: false,
buildProps: ['font-family', 'font-size', 'font-weight', 'letter-spacing', 'color', 'line-height', 'text-align', 'text-shadow'],
properties: [{
property: 'text-align',
list: [
{ value: 'left', className: 'fa fa-align-left' },
{ value: 'center', className: 'fa fa-align-center' },
{ value: 'right', className: 'fa fa-align-right' },
{ value: 'justify', className: 'fa fa-align-justify' },
],
}]
},{
name: config.textDecorations,
open: false,
buildProps: ['border-radius-c', 'background-color', 'border-radius', 'border', 'box-shadow', 'background'],
},{
name: config.textExtra,
open: false,
buildProps: ['transition', 'perspective', 'transform'],
}]);
// todo: make use of custom style manager.
}
2 changes: 1 addition & 1 deletion src/Resources/public/grapeseditor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Resources/public/grapeseditor.js.map

Large diffs are not rendered by default.

0 comments on commit d082fe1

Please sign in to comment.