I'll update this article to reflect that, but what's the most efficient way of doing that across all the relevant pages? Just Special:ReplaceText, or are there other tricks I'm not aware of? Edit: I think you need to be a sysop to use Special:ReplaceText, so that's out. --Ernstkm (talk) 03:03, 28 August 2023 (UTC)
Talk:MediaWiki-Docker/Extension/VisualEditor
Maybe ask at Project:Support desk?
OK, good idea. Thanks.
I followed the instructions. However, when I try to edit a page visually I receive the following error
{"error":{"code":"apierror-visualeditor-docserver-http-error","info":"Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server","docref":"See http://localhost:8080/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."}}
How can I figure out which url is trying to be contacted?
I checked http://localhost:8080/w/rest.php/localhost/v3/page/html/Main%20Page/3 which works as expected.
This page is a draft. I'm pretty sure that you'll not get a working VE after following these steps.
@Physikerwelt Are you using Docker on a mac? If this is the case, you might want to add
$wgVirtualRestConfig['modules']['parsoid'] = [
'url' => 'http://host.docker.internal:8080' . $wgScriptPath . '/rest.php',
];
This seems to be working for me.
It worked for me too! Thanks!
I've tested it both on macos and ubuntu, and it's needed in both.