Go to file
Sam Wilson 119f25e424 Add event logging for Realtime Preview enabling and disabling
Add two new actions for the 'preview' feature:

* preview-realtime-on – The WikiEditor 'Preview' toolbar button
  was clicked to turn the preview panel on.
* preview-realtime-off – The WikiEditor 'Preview' toolbar button
  was clicked to turn the preview panel off.
* preview-realtime-inuse – Fired without user interaction when the
  WikiEditor preview feature is already on when the editing form is
  opened.

This also adds a new hook for the last of these to use and to match
the enable/disable hooks.

Bug: T298218
Change-Id: I1a2545c2b0491c1d07f9508fab70967d03d61594
2022-04-04 14:25:16 +08:00
.phan build: Load ConfirmEdit as phan dependency 2021-11-23 19:30:25 +01:00
i18n Localisation updates from https://translatewiki.net. 2022-04-01 08:27:49 +02:00
includes Persist Realtime Preview state in a user preference 2022-03-31 21:01:36 +08:00
modules Add event logging for Realtime Preview enabling and disabling 2022-04-04 14:25:16 +08:00
tests/qunit Streamline smaller pieces of JavaScript code 2022-03-04 09:22:07 +00:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.21.0 2022-02-07 17:27:27 +00:00
.gitignore build: Updating npm dependencies for security issues 2019-06-09 04:32:34 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:04:09 -07:00
.phpcs.xml Fix excluded phpcs rules 2021-11-02 13:48:27 +08:00
.stylelintrc.json Update stylelint-config-wikimedia 2021-06-15 15:14:04 +01:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 17:48:56 +00:00
composer.json build: Updating mediawiki/mediawiki-phan-config to 0.11.1 2021-12-19 10:51:56 +00:00
COPYING Add COPYING 2014-01-22 22:11:36 +00:00
extension.json Persist Realtime Preview state in a user preference 2022-03-31 21:01:36 +08:00
Gruntfile.js build: Update devDependencies 2022-03-13 22:46:07 +00:00
package-lock.json build: Update devDependencies 2022-03-13 22:46:07 +00:00
package.json build: Update devDependencies 2022-03-13 22:46:07 +00:00
README Remove out-of-date version requirement from README 2021-10-04 10:34:13 +08:00

WikiEditor provides enhancements to the MediaWiki edit page

For installation, once the code is copied into your extensions directory, you can load it for your
wiki by adding to LocalSettings.php the line:

	wfLoadExtension( 'WikiEditor' );

By default, when installed this extension will be available to all users, and logged-in users can
disable it from their preferences. If you wish all users to have it, and be unable to disable it,
add it to $wgHiddenPrefs in your LocalSettings.php:

	$wgHiddenPrefs[] = 'usebetatoolbar';

More can be found on the extension's page: https://www.mediawiki.org/wiki/Extension:WikiEditor