Difference between revisions of "Visual Editor Install"

From SETV Springfield Technical Wiki
Jump to: navigation, search
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&#x3C;/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&#x3C;/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: '<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'
+
# 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

  1. cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git cd VisualEditor</code> git submodule update --init</code>
  2. Run This as Root from within the base wiki directory curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
  3. 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'