Merge "Toolbar: Make styling and insert menus collapsible"

This commit is contained in:
jenkins-bot 2014-10-30 19:56:08 +00:00 committed by Gerrit Code Review
commit 9a1ed3ce3d
3 changed files with 25 additions and 1 deletions

View file

@ -202,6 +202,7 @@ ve.init.mw.Target.static.toolbarGroups = [
indicator: 'down',
title: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
include: [ { group: 'textStyle' }, 'language', 'clear' ],
forceExpand: [ 'bold', 'italic', 'clear' ],
promote: [ 'bold', 'italic' ],
demote: [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
@ -228,6 +229,7 @@ ve.init.mw.Target.static.toolbarGroups = [
label: OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
indicator: 'down',
include: '*',
forceExpand: [ 'media', 'transclusion', 'insertTable' ],
promote: [ 'media', 'transclusion' ],
demote: [ 'specialcharacter' ]
},

View file

@ -96,6 +96,7 @@ ve.ui.MWMediaDialog.static.toolbarGroups = [
indicator: 'down',
title: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
include: [ { group: 'textStyle' }, 'language', 'clear' ],
forceExpand: [ 'bold', 'italic', 'clear' ],
promote: [ 'bold', 'italic' ],
demote: [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
@ -128,8 +129,18 @@ ve.ui.MWMediaDialog.static.toolbarGroups = [
'referencesList',
'gallery'
],
forceExpand: [ 'media', 'transclusion', 'insertTable' ],
promote: [ 'media', 'transclusion' ],
demote: [ 'specialcharacter' ]
},
// Table
{
header: OO.ui.deferMsg( 'visualeditor-toolbar-table' ),
type: 'list',
icon: 'table-insert',
indicator: 'down',
include: [ { group: 'table' } ],
demote: [ 'deleteTable' ]
}
];

View file

@ -87,12 +87,13 @@ ve.ui.MWReferenceDialog.static.toolbarGroups = [
indicator: 'down',
title: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
include: [ { group: 'textStyle' }, 'language', 'clear' ],
forceExpand: [ 'bold', 'italic', 'clear' ],
promote: [ 'bold', 'italic' ],
demote: [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
// Link
{ include: [ 'link' ] },
// Cite but not reference
// Cite-transclusion but not reference
{
type: 'list',
label: OO.ui.deferMsg( 'visualeditor-toolbar-cite-label' ),
@ -120,8 +121,18 @@ ve.ui.MWReferenceDialog.static.toolbarGroups = [
'referencesList',
'gallery'
],
forceExpand: [ 'media', 'transclusion', 'insertTable' ],
promote: [ 'media', 'transclusion' ],
demote: [ 'specialcharacter' ]
},
// Table
{
header: OO.ui.deferMsg( 'visualeditor-toolbar-table' ),
type: 'list',
icon: 'table-insert',
indicator: 'down',
include: [ { group: 'table' } ],
demote: [ 'deleteTable' ]
}
];