Use new options format for toolbar in mw init

Wasn't updated after change 63095 and so wasn't setting options.

Bug: 48509
Change-Id: Icda3305e422bedaf0d490b8fbe51f55b8c8e79e8
This commit is contained in:
Ed Sanders 2013-05-15 14:52:39 +01:00
parent 3109e96bb1
commit cc943418cf

View file

@ -51,19 +51,12 @@ ve.init.mw.ViewPageTarget = function VeInitMwViewPageTarget() {
this.deactivating = false;
this.scrollTop = null;
this.surfaceOptions = {
'toolbars': {
'top': {
'float': !this.isMobileDevice,
// HACK: The toolbar configuration isn't very extendable, so this is mostly
// copy-pasted from ve.Surface except using mwLink for the link tool
'tools': [
{ 'name': 'history', 'items' : ['undo', 'redo'] },
{ 'name': 'textStyle', 'items' : ['mwFormat'] },
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'mwLink', 'clear'] },
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] }
]
}
},
'toolbar': [
{ 'name': 'history', 'items' : ['undo', 'redo'] },
{ 'name': 'textStyle', 'items' : ['mwFormat'] },
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'mwLink', 'clear'] },
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] }
],
'commands': ['bold', 'italic', 'mwLink', 'undo', 'redo', 'indent', 'outdent']
};
this.currentUri = currentUri;