mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +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 = [
|
ve.init.mw.ViewPageTarget.static.toolbarTools = [
|
||||||
{ 'name': 'history', 'items' : ['undo', 'redo'] },
|
{ 'items': ['undo', 'redo'] },
|
||||||
{ 'name': 'textStyle', 'items' : ['mwFormat'] },
|
{ 'items': ['mwFormat'] },
|
||||||
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'mwLink', 'clear'] },
|
{ 'items': ['bold', 'italic', 'mwLink', 'clear'] },
|
||||||
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] }
|
{ 'items': ['number', 'bullet', 'outdent', 'indent'] }
|
||||||
];
|
];
|
||||||
|
|
||||||
ve.init.mw.ViewPageTarget.static.surfaceCommands = [
|
ve.init.mw.ViewPageTarget.static.surfaceCommands = [
|
||||||
|
|
|
@ -30,10 +30,10 @@ ve.mixinClass( ve.init.Target, ve.EventEmitter );
|
||||||
/* Static Properties */
|
/* Static Properties */
|
||||||
|
|
||||||
ve.init.Target.static.toolbarTools = [
|
ve.init.Target.static.toolbarTools = [
|
||||||
{ 'name': 'history', 'items' : ['undo', 'redo'] },
|
{ 'items': ['undo', 'redo'] },
|
||||||
{ 'name': 'textStyle', 'items' : ['format'] },
|
{ 'items': ['format'] },
|
||||||
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'link', 'clear'] },
|
{ 'items': ['bold', 'italic', 'link', 'clear'] },
|
||||||
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] }
|
{ 'items': ['number', 'bullet', 'outdent', 'indent'] }
|
||||||
];
|
];
|
||||||
|
|
||||||
ve.init.Target.static.surfaceCommands = [
|
ve.init.Target.static.surfaceCommands = [
|
||||||
|
|
|
@ -165,8 +165,7 @@ ve.ui.Toolbar.prototype.addTools = function ( tools ) {
|
||||||
group = tools[i];
|
group = tools[i];
|
||||||
// Create group
|
// Create group
|
||||||
$group = this.$$( '<div class="ve-ui-toolbar-group"></div>' )
|
$group = this.$$( '<div class="ve-ui-toolbar-group"></div>' )
|
||||||
.on( 'mousedown', false )
|
.on( 'mousedown', false );
|
||||||
.addClass( 've-ui-toolbar-group-' + group.name );
|
|
||||||
if ( group.label ) {
|
if ( group.label ) {
|
||||||
$group.append(
|
$group.append(
|
||||||
this.$$( '<div class="ve-ui-toolbar-label"></div>' ).html( group.label )
|
this.$$( '<div class="ve-ui-toolbar-label"></div>' ).html( group.label )
|
||||||
|
|
Loading…
Reference in a new issue