[ADD] basic stylesSet conf

bzr revid: xmo@openerp.com-20130807121746-10gjzibadyr1kdml
This commit is contained in:
Xavier Morel 2013-08-07 14:17:46 +02:00
parent 204fb89a8c
commit 8f1acfff3b
1 changed files with 11 additions and 3 deletions

View File

@ -191,8 +191,6 @@ instance.website.RTE = instance.web.Widget.extend({
'magicline'
];
return {
// Don't load ckeditor's style rules
stylesSet: [],
removePlugins: removed_plugins.join(','),
uiColor: '',
// Ensure no config file is loaded
@ -216,7 +214,17 @@ instance.website.RTE = instance.web.Widget.extend({
"JustifyBlock", "Table", "Font", "FontSize", "Format",
"Styles"
]}
]
],
// styles dropdown in toolbar
stylesSet: [
// emphasis
{name: "Muted", element: 'span', attributes: {'class': 'text-muted'}},
{name: "Primary", element: 'span', attributes: {'class': 'text-primary'}},
{name: "Warning", element: 'span', attributes: {'class': 'text-warning'}},
{name: "Danger", element: 'span', attributes: {'class': 'text-danger'}},
{name: "Success", element: 'span', attributes: {'class': 'text-success'}},
{name: "Info", element: 'span', attributes: {'class': 'text-info'}}
],
};
},
// TODO clean