MobileArticleTarget: fix deprecated toolbar calls

Change-Id: If7d4b52c29e9648f17eda2d62f8fcdad744f82ae
This commit is contained in:
David Lynch 2018-05-18 15:59:15 +02:00
parent a975aacbe7
commit 150fb16008

View file

@ -38,9 +38,12 @@ OO.inheritClass( ve.init.mw.MobileArticleTarget, ve.init.mw.ArticleTarget );
ve.init.mw.MobileArticleTarget.static.toolbarGroups = [
// History
{ include: [ 'undo' ] },
{
name: 'history',
include: [ 'undo' ] },
// Style
{
name: 'style',
classes: [ 've-test-toolbar-style' ],
type: 'list',
icon: 'textStyle',
@ -51,9 +54,15 @@ ve.init.mw.MobileArticleTarget.static.toolbarGroups = [
demote: [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
// Link
{ include: [ 'link' ] },
{
name: 'link',
include: [ 'link' ]
},
// Done with editing toolbar
{ include: [ 'done' ] }
{
name: 'done',
include: [ 'done' ]
}
];
ve.init.mw.MobileArticleTarget.static.trackingName = 'mobile';
@ -169,8 +178,12 @@ ve.init.mw.MobileArticleTarget.prototype.attachToolbarSaveButton = function () {
this.pageToolbar.setup( [
// Back
{ include: [ 'back' ] },
{
name: 'save-back',
include: [ 'back' ]
},
{
name: 'edit-modes',
type: 'list',
icon: 'edit',
title: ve.msg( 'visualeditor-mweditmode-tooltip' ),