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
This commit is contained in:
Bartosz Dziewoński 2019-05-18 18:15:51 +02:00
parent 7dc2fee2f7
commit 222ada6a8e

View file

@ -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'
];