VisualEditor in MediaWiki


Has anyone successful configured the VisualEditor plugin for a Reclaim-hosted MediaWiki instance?

(As an alternative to configuring and running the Parsoid node process on our machine, it seems like you can point to Parsoid on a different machine, but I wasn’t able to get that working, either, since I wasn’t able to curl the parsoid server on the non-standard port.)


I got a request about a year ago for it and looked into it and as soon as I saw it needed a running Node.JS server I stopped and didn’t look much further (might be the epitome of overengineering, a Node server for a toolbar…). I didn’t realize you could run the Parsoid instance from another server but haven’t experimented myself with it. What port does it use? Opening ports on our end is pretty easy.


The default port for Parsoid (and the one we tried to use) is 8142.


Sweet, thanks! @ari with that port now open on the Minerva server I’d be curious if the method of using a separate server for Parsoid works. If so I would love to hear more about what was involved in setting it up. I’m still not sure even at a dirt cheap $5/mo Digital Ocean VPS that it makes sense for anyone to run a Parsoid server just to get a visual editor in Mediawiki but I am curious about how it all works.


Thanks! Mark already set up the Parsoid server on a Free-Tier EC2 instance. We’ll let you know how it works out.


That did the trick, @timmmmyboy. Big thanks to @MarkEst, one of our first year students, for getting this working!


That is awesome! @MarkEst I would love for you to write up a how-to if you feel so inclined. I’ve had a few folks ask about it and not realize what’s involved. Would be cool to see how you did it!


Sure! I mostly just followed instructions in terminal for VisualEditor and Parsoid. The setup is relatively straightforward if you’re comfortable editing PHP and JS config files. Otherwise, I imagine it could very easily get confusing. The biggest hiccup I’ve hit, both here and on AWS, is making sure the port is open. For example, even when the Wiki and Parsoid server were both on the same AWS instance, I still had to unblock the port.

Since we didn’t install Parsoid on Minerva’s server (although we might in the future), I can’t give specific tips about that. The instructions use apt-get, which might add a bump in the road if your servers don’t have it installed.

Let me know if you want any more detailed information!