Skip to content

Commit

Permalink
fix: use $wgVisualEditorParsoidAutoConfig (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Dec 24, 2023
1 parent bdffc12 commit 95f96bc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions wiki/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,9 @@
# #$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Note! This is a server to server URL (it must be valid within your VM/container)
'url' => getenv("MW_WG_PARSOID_URL") ?: 'http://localhost:8080/rest.php',
// for the embedded parsoid to work in a container and return a 400 error
// we need to tell the editor that the url above is "fixed".
'fixedUrl' => true,
);
# with MV 1.39 parsoid autoconfig works and there is no need for
# customising $wgVirtualRestConfig.
$wgVisualEditorParsoidAutoConfig = true;

# TemplateData Extension
wfLoadExtension( 'TemplateData' );
Expand Down

0 comments on commit 95f96bc

Please sign in to comment.