From 222ada6a8e9007d4065540cf7049142182fdd85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sat, 18 May 2019 18:15:51 +0200 Subject: [PATCH] VisualEditorHooks: Mark the 'preview' parameter as unsupported We don't currently support it in NWE. It has a very different design for previews that wouldn't really do what users expect. Let the old editor handle this. Bug: T195914 Change-Id: If0c0312347c212447bd8da7336c80bd4a1cb246a --- includes/VisualEditorHooks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/VisualEditorHooks.php b/includes/VisualEditorHooks.php index 4c2ce17dd1..f77613e804 100644 --- a/includes/VisualEditorHooks.php +++ b/includes/VisualEditorHooks.php @@ -19,6 +19,9 @@ class VisualEditorHooks { private static $unsupportedEditParams = [ 'undo', 'undoafter', + // Only for WTE. This parameter is not supported right now, and NWE has a very different design + // for previews, so we might not want to support this at all. + 'preview', 'veswitched' ];