From 2ad4015775cceaf49f886d7a03be35c9f3ea1b74 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 7 Oct 2016 22:44:52 -0400 Subject: [PATCH] Add big/small support to NWE Change-Id: Id42cb7563d7f6d14d0f225edb8a283c8b9eaa8db --- modules/ve-mw/ui/ve.ui.MWWikitextCommandRegistry.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/ve-mw/ui/ve.ui.MWWikitextCommandRegistry.js b/modules/ve-mw/ui/ve.ui.MWWikitextCommandRegistry.js index 88627ec3df..f0db48db53 100644 --- a/modules/ve-mw/ui/ve.ui.MWWikitextCommandRegistry.js +++ b/modules/ve-mw/ui/ve.ui.MWWikitextCommandRegistry.js @@ -120,6 +120,18 @@ ve.ui.wikitextCommandRegistry.register( { args: [ '', '', OO.ui.deferMsg( 'visualeditor-annotationbutton-superscript-tooltip' ) ], supportedSelections: [ 'linear' ] } ) ); +ve.ui.wikitextCommandRegistry.register( + new ve.ui.Command( + 'big', 'mwWikitext', 'toggleWrapSelection', + { args: [ '', '', OO.ui.deferMsg( 'visualeditor-annotationbutton-big-tooltip' ) ], supportedSelections: [ 'linear' ] } + ) +); +ve.ui.wikitextCommandRegistry.register( + new ve.ui.Command( + 'small', 'mwWikitext', 'toggleWrapSelection', + { args: [ '', '', OO.ui.deferMsg( 'visualeditor-annotationbutton-small-tooltip' ) ], supportedSelections: [ 'linear' ] } + ) +); ( function () { var i, heading = '';