From f9562838bfbe1586f701e40df8a219ecd495bc41 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 11 Sep 2017 17:00:17 +0100 Subject: [PATCH] ArticleTarget: Make save commands triggerable from anywhere Change-Id: Iea5b2ff1210b0b28a58017f198f55124c9a3348d --- modules/ve-mw/init/ve.init.mw.ArticleTarget.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js index b20832cb31..c5732e5e81 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js @@ -197,6 +197,18 @@ ve.init.mw.ArticleTarget.static.integrationType = 'page'; */ ve.init.mw.ArticleTarget.static.platformType = 'other'; +/** + * @inheritdoc + */ +ve.init.mw.ArticleTarget.static.documentCommands = ve.init.mw.ArticleTarget.super.static.documentCommands.concat( [ + // Make save commands triggerable from anywhere + 'showSave', + 'showChanges', + 'showPreview', + 'showMinoredit', + 'showWatchthis' +] ); + /* Methods */ /**