Media Editor In Moin

Feb 03, 2006
NOTE: These instructions and source files are for MoinMoin 1.3, which is very out of date. You will probably need to do very different things to get the latest MoinMoin to work with MediaWiki's editor.

I like Wikipedia's editor. I like MoinMoin's wiki. Solution? Marry them!

MoinMoin 1.3 and MediaWiki's editor

  1. Download the necessary parts: mediaInMoin.tar.gz

  2. Uncompress the archive. In the examples below, we will assume you do this in /tmp.

  3. Replace your MoinMoin installation's "PageEditor.py" file with the included "PageEditor.py". On a linux machine, that will look something like this - but your paths will probably be different. You will probably have to be root or have sudo access to do this.

$ cd /usr/local/python2.3/lib/site-packages/MoinMoin/
        $ cp PageEditor.py PageEidtor-orig.py
        $ cp /tmp/mediaInMoin/PageEditor.py PageEditor.py
        

4. Put the included modified mediawiki source in your wiki's htdocs directory. Again, assuming Linux:

$ cp -r /tmp/mediaInMoin/media/ /usr/local/share/moin/htdocs
        

5. Install a mediawiki parser. My version is called "mediaplus" and is included in mediaInMoin.tar.gz. This is a slightly modified version of Stefan Merten's original, which you could also use. Mine makes links a little prettier, and does not include "Discussion" links on every page.

Place this parser in your wiki's plugin directory:

$ cp /tmp/mediaInMoin/mediaplus.py /path/to/your/wiki/data/plugin/parser/
        

6. Lastly, add the following directives to your wiki's configuration to make the media wiki syntax the default syntax, and to use the media editor.

Toggle line numbers
   1     use_media_editor = 1
           2     default_markup = "mediaplus"
        

Other MoinMoin Extensions