Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P12981
parsoid config
Active
Public
Actions
Authored by
brennen
on Oct 13 2020, 10:02 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F32383799: parsoid config
Oct 13 2020, 10:02 PM
2020-10-13 22:02:34 (UTC+0)
Subscribers
None
# 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.
Oct 13 2020, 10:02 PM
2020-10-13 22:02:34 (UTC+0)
Log In to Comment