Page MenuHomePhabricator
Paste P12981

parsoid config
ActivePublic

Authored by brennen on Tue, Oct 13, 10:02 PM.
# Extensions:
16:02:16 brennen@inertia:~/code/wmf/mediawiki/core (master=) ❀ ls extensions
README VisualEditor
# Here's what I have in LocalSettings.php
# Parsoid stuffs {{{
$PARSOID_INSTALL_DIR = 'vendor/wikimedia/parsoid';
if ( $PARSOID_INSTALL_DIR !== 'vendor/wikimedia/parsoid' ) {
AutoLoader::$psr4Namespaces += [
// Keep this in sync with the "autoload" clause in
// $PARSOID_INSTALL_DIR/composer.json
'Wikimedia\\Parsoid\\' => "$PARSOID_INSTALL_DIR/src",
];
}
wfLoadExtension( 'Parsoid', "$PARSOID_INSTALL_DIR/extension.json" );
# Manually configure Parsoid
$wgVisualEditorParsoidAutoConfig = false;
$wgParsoidSettings = [
'useSelser' => true,
'rtTestMode' => false,
'linting' => false,
];
$wgVirtualRestConfig['modules']['parsoid'] = [];
# }}}
wfLoadExtension( 'VisualEditor' );
wfLoadSkin( 'Vector' );

Event Timeline

brennen created this paste.Tue, Oct 13, 10:02 PM