mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "Toolbar: Make styling and insert menus collapsible"
This commit is contained in:
commit
9a1ed3ce3d
|
@ -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' ]
|
||||
},
|
||||
|
|
|
@ -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' ]
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -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' ]
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue