Go to file
Derk-Jan Hartman dbbb722210 Only add WikiEditor for content model WikiText
Together with solving bug 29908, this makes the presence of the
toolbar consistent. It is added to pages handling wikitext.

Note that we provide the CodeEditor on all JS/CSS/Lua pages.

Bug: 24713
Bug: 24041
Change-Id: Iaa6b9a6c511380ed1669d8b95cba4a3ddc6f9ab6
2014-07-28 23:12:39 +00:00
i18n Localisation updates from https://translatewiki.net. 2014-07-28 21:26:51 +02:00
modules Merge "Enable WikiEditor toolbar on iOS" 2014-06-03 18:59:58 +00:00
tests/selenium WikiEditor: Remove unmaintained highlight plugin 2014-04-03 17:12:07 +02:00
.gitignore Adding .gitignore. 2012-05-08 20:01:10 +03:00
.gitreview Set defaultrebase=0 in .gitreview 2012-04-16 11:21:28 -07:00
.jshintrc Kranitor: Make JSHint pass 2013-11-10 07:36:03 +00:00
composer.json experimental composer.json 2013-01-29 16:55:07 +01:00
COPYING Add COPYING 2014-01-22 22:11:36 +00:00
README Remove ClickTracking calls 2013-03-27 13:41:05 -07:00
WikiEditor.hooks.php Only add WikiEditor for content model WikiText 2014-07-28 23:12:39 +00:00
WikiEditor.i18n.php Update i18n shim 2014-04-22 13:53:47 +00:00
WikiEditor.php Toolbar: Fix dependencies of WikiEditor toolbar 2014-06-16 01:11:56 +02:00

# WikiEditor provides enhancements to the MediaWiki edit page

# This extension requires MediaWiki 1.17+ because it makes use of ResourceLoader.

# Example LocalSettings.php additions

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

# Before configuring this extension, see WikiEditor.php and become familiar with the initial state and structure of the
# $wgWikiEditorFeatures configuration variable. Essentially it's an array of arrays, keyed by feature name, each
# containing global and user keys with boolean values. "global" indicates that it should be turned on for everyone
# always, while user indicates that users should be allowed to turn it on or off in their user preferences.

# To enable a preference by default but still allow users to disable it in preferences, use something like...

$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

# Release 1.21 removes the $wgWikiEditorToolbarClickTracking config variable
# and with it support for tracking clicks on WikiEditor features via the
# ClickTracking extension.