Skip to content

Commit

Permalink
VE: use parsoid in direct mode (#5357)
Browse files Browse the repository at this point in the history
  • Loading branch information
RhinosF1 authored Nov 4, 2023
1 parent 50f518b commit fba60a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions GlobalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
}

if ( $wi->isExtensionActive( 'VisualEditor' ) ) {
$wgUseRestbaseVRS = false;
$wgVisualEditorDefaultParsoidClient = 'direct';
if ( $wmgVisualEditorEnableDefault ) {
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptions['visualeditor-editor'] = 'visualeditor';
Expand All @@ -75,10 +77,6 @@
require_once '/srv/mediawiki/config/Wikibase.php';
}

if ( $wi->isExtensionActive( 'VisualEditor' ) ) {
$wgVisualEditorParsoidAutoConfig = false;
}

$wgVirtualRestConfig = [
'modules' => [
'parsoid' => [
Expand Down

0 comments on commit fba60a6

Please sign in to comment.