Difference between revisions of "Visual Editor Install"
From SETV Springfield Technical Wiki
(Tag: Visual edit) |
|||
Line 2: | Line 2: | ||
After you have MediaWiki installed (to a users' account NOT <code>/var/www/mediawiki</code> and working, do the following | After you have MediaWiki installed (to a users' account NOT <code>/var/www/mediawiki</code> and working, do the following | ||
− | #<code>cd extensions | + | # <code>cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git</code> cd VisualEditor</code> git submodule update --init</code> |
− | git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git | ||
− | cd VisualEditor | ||
− | git submodule update --init</code> | ||
# Run This as Root from within the base wiki directory <code>curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -</code> | # Run This as Root from within the base wiki directory <code>curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -</code> | ||
+ | # 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: | ||
+ | # - # This is the only required parameter, # the URL of you MediaWiki API endpoint. uri: '<nowiki>http://wiki.ssdcougars.tv/api.php'</nowiki> # 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: '<nowiki>http://my.proxy:1234/'</nowiki> # headers: # optional # 'X-Forwarded-Proto': 'https' |
Revision as of 07:14, 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.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'