Topic on Talk:Parsoid/PHP

Alternative (simpler) install directions for ordinary users?

3
Summary last edited by Cscott 17:40, 5 October 2020 3 years ago

The following is documented on Extension:VisualEditor as a simpler configuration if you are using the released version of VisualEditor in MediaWiki 1.35.

wfLoadExtension( 'VisualEditor' );
// $wgParsoidSettings = [
// 	'linting' => true,
// 	'_merge_strategy' => 'array_plus',
// ];
// wfLoadExtension( 'Linter' );
// wfLoadExtension( 'Flow' );
Lens0021 (talkcontribs)

I am looking for an instruction for production.

I tried below: (Full LocalSettings.php)

<?php
// Parsoid Setting
$wgParsoidSettings = [
	'linting' => true,
	'_merge_strategy' => 'array_plus',
];
wfLoadExtension( 'Parsoid', "$IP/vendor/wikimedia/parsoid/extension.json" );
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'Linter' );

Is it simplest?

Best regards.

Lens0021 (talkcontribs)

Thus, I want Extension:StructuredDiscussions too. But flow-parsoid-utils API says "Conversion from 'html' to 'wikitext' was requested, but core's Parser only supports 'wikitext' to 'html' conversion".

Adding more config described below is not helping, just make the message to changed to ""[382f4466b477f8d36a66ac38] Exception caught: Request to parsoid for \"html\" to \"wikitext\" conversion of content connected to title \"Talk:Main\" failed: (curl error: 7) Couldn't connect to server":

<?php
$wgVirtualRestConfig['modules']['parsoid'] = [
	'url' => 'http://localhost/rest.php',
	'domain' => 'localhost'
];

In the both cases, VisualEditor works well.

Lens0021 (talkcontribs)