Difference between revisions of "Visual Editor Install"
From SETV Springfield Technical Wiki
(Tag: Visual edit) |
|||
| Line 6: | Line 6: | ||
# Next we need to install Parsiod <code>cd /opt</code> <code>mkdir src</code> <code>cd src</code> <code>clone [https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid</code https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid]</code> <code>cp -rv ~/parsoid /opt/</code> <code>cd /opt/parsoid/</code> <code>npm install</code> <code>nano config.example.yaml</code> FIND | # Next we need to install Parsiod <code>cd /opt</code> <code>mkdir src</code> <code>cd src</code> <code>clone [https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid</code https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid]</code> <code>cp -rv ~/parsoid /opt/</code> <code>cd /opt/parsoid/</code> <code>npm install</code> <code>nano config.example.yaml</code> FIND | ||
mwApis: | 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' | ||
Revision as of 07:16, 19 August 2016
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.gitcd 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 /optmkdir srccd srcclone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoidcp -rv ~/parsoid /opt/cd /opt/parsoid/npm installnano config.example.yamlFIND
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'