From d18496f0256fb6835c9ea5f72cb53380508cd36f Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 6 May 2020 18:01:45 +0100 Subject: [PATCH] Allow visual mode to tested with ?dtvisual=1 Bug: T251963 Change-Id: Ie86ed2097e3dc008f73d9b498627f9d025b865d5 --- modules/CommentController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/CommentController.js b/modules/CommentController.js index 9a92fa88b..3c42ca991 100644 --- a/modules/CommentController.js +++ b/modules/CommentController.js @@ -7,7 +7,7 @@ var scrollPadding = { top: 10, bottom: 10 }, config = require( './controller/config.json' ), // TODO: Remember last editor used - useVisual = config.useVisualEditor; + useVisual = config.useVisualEditor || ( new mw.Uri() ).query.dtvisual; // Start loading reply widget code if ( useVisual ) {