mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Remove unused toolbar group name.
Can't see why we'd need to style toolbar groups differently. Change-Id: I0646b8cf37ab19e34a8ed2eb8558773365403610
This commit is contained in:
parent
2e76271b4e
commit
026af0d6c0
|
@ -153,10 +153,10 @@ ve.init.mw.ViewPageTarget.compatibility = {
|
|||
};
|
||||
|
||||
ve.init.mw.ViewPageTarget.static.toolbarTools = [
|
||||
{ 'name': 'history', 'items' : ['undo', 'redo'] },
|
||||
{ 'name': 'textStyle', 'items' : ['mwFormat'] },
|
||||
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'mwLink', 'clear'] },
|
||||
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] }
|
||||
{ 'items': ['undo', 'redo'] },
|
||||
{ 'items': ['mwFormat'] },
|
||||
{ 'items': ['bold', 'italic', 'mwLink', 'clear'] },
|
||||
{ 'items': ['number', 'bullet', 'outdent', 'indent'] }
|
||||
];
|
||||
|
||||
ve.init.mw.ViewPageTarget.static.surfaceCommands = [
|
||||
|
|
|
@ -30,10 +30,10 @@ ve.mixinClass( ve.init.Target, ve.EventEmitter );
|
|||
/* Static Properties */
|
||||
|
||||
ve.init.Target.static.toolbarTools = [
|
||||
{ 'name': 'history', 'items' : ['undo', 'redo'] },
|
||||
{ 'name': 'textStyle', 'items' : ['format'] },
|
||||
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'link', 'clear'] },
|
||||
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] }
|
||||
{ 'items': ['undo', 'redo'] },
|
||||
{ 'items': ['format'] },
|
||||
{ 'items': ['bold', 'italic', 'link', 'clear'] },
|
||||
{ 'items': ['number', 'bullet', 'outdent', 'indent'] }
|
||||
];
|
||||
|
||||
ve.init.Target.static.surfaceCommands = [
|
||||
|
|
|
@ -165,8 +165,7 @@ ve.ui.Toolbar.prototype.addTools = function ( tools ) {
|
|||
group = tools[i];
|
||||
// Create group
|
||||
$group = this.$$( '<div class="ve-ui-toolbar-group"></div>' )
|
||||
.on( 'mousedown', false )
|
||||
.addClass( 've-ui-toolbar-group-' + group.name );
|
||||
.on( 'mousedown', false );
|
||||
if ( group.label ) {
|
||||
$group.append(
|
||||
this.$$( '<div class="ve-ui-toolbar-label"></div>' ).html( group.label )
|
||||
|
|
Loading…
Reference in a new issue