Enable Visual Editor in more namespaces


#1

We want Visual Editor to be available in the Main, User, File, Category, Help, and Talk namespaces.

Per default, the VisualEditor is only enabled for the namespaces “Main”, “User”, “File” and “Category”. It is however possible to add or remove namespaces. There are many ways to do this but it is recommended to use the canonical names defined for the respective namespaces.

// Namespaces in which to enable VisualEditor
// (mapped from namespace canonical name to a boolean flag), 
// on top of $wgContentNamespaces
$wgVisualEditorAvailableNamespaces = [
    "User" => true,
    "File" => true,
    "Category" => true,
    "_merge_strategy" => "array_plus"
];

Tested on freephile