Add LocalSettings.php customisations for VisualEditor #2

Closed
opened 2020-09-05 00:28:38 +00:00 by 3wordchant · 1 comment
Owner

Currently, after installation you need to manually edit LocalSettings.php and add this:

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgVisualEditorAllowLossySwitching = false;

$wgVirtualRestConfig['modules']['parsoid'] = [
        // URL to the Parsoid instance - use port 8142 if you use the Debian package - the parameter 'URL' was first used but is now deprecated (string)
        'url' => 'http://localhost:8000/',
        // Parsoid "domain" (string, optional) - MediaWiki >= 1.26
        'domain' => 'localhost',
        // Parsoid "prefix" (string, optional) - deprecated since MediaWiki 1.26, use 'domain'
        'prefix' => 'localhost',
        // Forward cookies in the case of private wikis (string or false, optional)
        'forwardCookies' => true,
        // request timeout in seconds (integer or null, optional)
        'timeout' => null,
        // Parsoid HTTP proxy (string or null, optional)
        'HTTPProxy' => null,
        // whether to parse URL as if they were meant for RESTBase (boolean or null, optional)
        'restbaseCompat' => null,
];

It'd be nice if we templated that into LocalSettings.php, see #1

Currently, after installation you need to manually edit `LocalSettings.php` and add this: ``` $wgDefaultUserOptions['visualeditor-enable'] = 1; $wgVisualEditorAllowLossySwitching = false; $wgVirtualRestConfig['modules']['parsoid'] = [ // URL to the Parsoid instance - use port 8142 if you use the Debian package - the parameter 'URL' was first used but is now deprecated (string) 'url' => 'http://localhost:8000/', // Parsoid "domain" (string, optional) - MediaWiki >= 1.26 'domain' => 'localhost', // Parsoid "prefix" (string, optional) - deprecated since MediaWiki 1.26, use 'domain' 'prefix' => 'localhost', // Forward cookies in the case of private wikis (string or false, optional) 'forwardCookies' => true, // request timeout in seconds (integer or null, optional) 'timeout' => null, // Parsoid HTTP proxy (string or null, optional) 'HTTPProxy' => null, // whether to parse URL as if they were meant for RESTBase (boolean or null, optional) 'restbaseCompat' => null, ]; ``` It'd be nice if we templated that into `LocalSettings.php`, see #1
Author
Owner

This is now included by default, let's reopen if and when we get a request for Visual Editor to be optional

This is now included by default, let's reopen if and when we get a request for Visual Editor to be optional
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/mediawiki#2
No description provided.