Hide structure tools in MWReferences

Technically these are possible to render (although there's currently
a Parsoid bug preventing it) but really references should just contain
one single paragraph.

Change-Id: I405d75a0935d3f4610e10b942b48fa0fa2679a20
This commit is contained in:
Ed Sanders 2014-02-05 19:39:39 +00:00
parent 1e6daf1ee6
commit d7e9564d22

View file

@ -57,17 +57,17 @@ ve.ui.MWReferenceDialog.static.toolbarGroups = [
},
// Link
{ 'include': [ 'link' ] },
// Structure
{
// No structure
/* {
'type': 'bar',
'include': [ 'number', 'bullet', 'outdent', 'indent' ]
},
},*/
// Insert
{
'label': 'visualeditor-toolbar-insert',
'indicator': 'down',
'include': '*',
'exclude': [ { 'group': 'format' }, 'reference', 'referenceList' ],
'exclude': [ { 'group': 'format' }, { 'group': 'structure' }, 'reference', 'referenceList' ],
'demote': [ 'specialcharacter' ]
}
];
@ -82,8 +82,6 @@ ve.ui.MWReferenceDialog.static.surfaceCommands = [
'underline',
'subscript',
'superscript',
'indent',
'outdent',
'pasteSpecial'
];