mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
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:
parent
3109e96bb1
commit
cc943418cf
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue