Visual Editor Install
From SETV Springfield Technical Wiki
Mediawiki's Visual Editor is not included with Mediawiki. It is an external add-on that requires a LOT of work to get working.
After you have MediaWiki installed (to a users' account NOT /var/www/mediawiki
and working, do the following
-
cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git
cd VisualEditor</code> git submodule update --init</code> - Run This as Root from within the base wiki directory
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
- Next we need to install Parsiod
cd /opt
mkdir src
cd src
clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid
cp -rv ~/parsoid /opt/
cd /opt/parsoid/
npm install
nano config.example.yaml
FIND
mwApis:
- - # This is the only required parameter, # the URL of you MediaWiki API endpoint. uri: 'http://wiki.ssdcougars.tv/api.php' # The "domain" is used for communication with Visual Editor # and RESTBase. It defaults to the hostname portion of # the `uri` property below, but you can manually set it # to an arbitrary string. domain: 'wiki.ssdcougars.tv' # optional # To specify a proxy (or proxy headers) specific to this prefix # (which overrides defaultAPIProxyURI). Alternatively, set `proxy` # to `null` to override and force no proxying when a default proxy # has been set. #proxy: # uri: 'http://my.proxy:1234/' # headers: # optional # 'X-Forwarded-Proto': 'https'