IT/Software/Mediawiki/Extensions/Visual Editor: Difference between revisions
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==About== | ==About== | ||
*The Visual | *The Visual Editor is the editor you see when you click edit on a msgwiki page. | ||
*https://www.mediawiki.org/wiki/Extension:VisualEditor | *https://www.mediawiki.org/wiki/Extension:VisualEditor | ||
Line 7: | Line 7: | ||
*You can download the tarball [[mediawikiwiki:Special:ExtensionDistributor/VisualEditor|here]]. | *You can download the tarball [[mediawikiwiki:Special:ExtensionDistributor/VisualEditor|here]]. | ||
*Add the following to your LocalSettings.php to enable. | *Add the following to your LocalSettings.php to enable. | ||
wfLoadExtension( 'VisualEditor' ); | wfLoadExtension( 'VisualEditor' ); | ||
*Add the following line to allow everyone to use the | *Add the following line to allow everyone to use the Visual Editor. | ||
$wgDefaultUserOptions['visualeditor-enable'] = 1; | $wgDefaultUserOptions['visualeditor-enable'] = 1; | ||
Line 19: | Line 18: | ||
$wgVirtualRestConfig['modules']['parsoid'] = array('url' => '<nowiki>http://localhost:8000'</nowiki>); | $wgVirtualRestConfig['modules']['parsoid'] = array('url' => '<nowiki>http://localhost:8000'</nowiki>); | ||
==Configuring the Parsoid== | |||
==Configuring the | |||
*Follow the instructions [[mediawikiwiki:Parsoid/Setup#Ubuntu_/_Debian|here]] to install the parsoid. | *Follow the instructions [[mediawikiwiki:Parsoid/Setup#Ubuntu_/_Debian|here]] to install the parsoid. | ||
Line 42: | Line 39: | ||
systemctl restart parsoid | systemctl restart parsoid | ||
==Notes== | |||
== Notes == | |||
*When you systemctl status parsoid it claims to be running on port 8142 regardless of what is set in the config.yml. This is not an issue just something to keep in mind when debugging. | |||
*The parsoid has a basic web front end that can be used to verify that is running properly and on the correct port. |
Latest revision as of 15:47, 4 February 2020
About
- The Visual Editor is the editor you see when you click edit on a msgwiki page.
- https://www.mediawiki.org/wiki/Extension:VisualEditor
Installation
- You can download the tarball here.
- Add the following to your LocalSettings.php to enable.
wfLoadExtension( 'VisualEditor' );
- Add the following line to allow everyone to use the Visual Editor.
$wgDefaultUserOptions['visualeditor-enable'] = 1;
- Add the following line to tell the Visual Editor where to find the parsoid.
$wgVirtualRestConfig['modules']['parsoid'] = array('url' => 'http://localhost:8000');
Configuring the Parsoid
- Follow the instructions here to install the parsoid.
- Open the file /etc/mediawiki/parsoid/config.yaml
- Find the uri line and change to
uri: 'https://msgwiki.msgeducation.com/api.php'
- Next comment out the domain line. In theory you should be able to put your wikis FQDN here but for me it seems to work more consistently without the line.
- Lastly add the following lines to the end of the file and then save and exit.
serverPort: 8000
serverInterface: '0.0.0.0'
- Restart the parsoid and enable on boot.
systemctl enable parsoid
systemctl restart parsoid
Notes
- When you systemctl status parsoid it claims to be running on port 8142 regardless of what is set in the config.yml. This is not an issue just something to keep in mind when debugging.
- The parsoid has a basic web front end that can be used to verify that is running properly and on the correct port.