Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load MediaWiki's WikiEditor?

Tags:

php

mediawiki

I have an old skin that I need to adapt to the new MediaWiki 1.18 which has this new WikiEditor. If I set the skin to Simple or any other theme than the custom theme, then I see the WYSIWYG editor (WikiEditor), but if I use a custom skin I don't see it.

I think I'm missing something, I've wasted half a work day trying to figure what am I missing but the skin seems to be just like the other skins. I checked MediaWiki homepage but they don't tell what do I need to do to get this WikiEditor to load.

To confirm: the WikiEditor source codes are never loaded, i.e. the ResourceLoader does not load them, but I do not know how to make it load.

like image 889
Tower Avatar asked Apr 02 '12 13:04

Tower


1 Answers

From Extension:WikiEditor:

For 1.18 and later the extension already comes with your MediaWiki package.
You only need to install and configure it as described below:

Add the following line to your LocalSettings.php:

require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );

To enable use of WikiEditor by default but still allow users to disable it in preferences, use something like...

$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 1;
like image 152
ShoeMaker Avatar answered Nov 02 '22 13:11

ShoeMaker