2010-09-15 03:02:35 +00:00
|
|
|
<?php
|
2010-09-16 17:29:22 +00:00
|
|
|
/**
|
|
|
|
* WikiEditor extension
|
2014-03-29 16:14:05 +00:00
|
|
|
*
|
2010-09-16 17:29:22 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2014-03-29 16:14:05 +00:00
|
|
|
*
|
2010-09-16 17:29:22 +00:00
|
|
|
* @author Trevor Parscal <trevor@wikimedia.org>
|
|
|
|
* @author Roan Kattouw <roan.kattouw@gmail.com>
|
|
|
|
* @author Nimish Gautam <nimish@wikimedia.org>
|
|
|
|
* @author Adam Miller <amiller@wikimedia.org>
|
|
|
|
* @license GPL v2 or later
|
2014-05-26 20:14:01 +00:00
|
|
|
* @version 0.4.0
|
2010-09-16 17:29:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Configuration */
|
|
|
|
|
|
|
|
// Each module may be configured individually to be globally on/off or user preference based
|
2015-03-16 00:51:32 +00:00
|
|
|
$wgWikiEditorFeatures = array(
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2011-03-21 20:48:17 +00:00
|
|
|
/* Textarea / i-frame compatible (OK to deploy) */
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2014-05-15 09:59:55 +00:00
|
|
|
'toolbar' => array( 'global' => false, 'user' => true ),
|
2010-09-16 22:37:03 +00:00
|
|
|
// Provides interactive tools
|
2014-05-15 09:59:55 +00:00
|
|
|
'dialogs' => array( 'global' => false, 'user' => true ),
|
2011-04-22 12:10:18 +00:00
|
|
|
// Hide signature button from main namespace
|
2011-04-22 12:24:24 +00:00
|
|
|
'hidesig' => array( 'global' => true, 'user' => false ),
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2011-03-21 20:48:17 +00:00
|
|
|
/* Textarea / i-frame compatible, but still experimental and unstable (do not deploy!) */
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2010-09-16 22:37:03 +00:00
|
|
|
// Adds a tab for previewing in-line
|
2010-09-16 17:29:22 +00:00
|
|
|
'preview' => array( 'global' => false, 'user' => true ),
|
2015-03-14 15:49:04 +00:00
|
|
|
// Adds a button and dialog for step-by-step publishing
|
2010-09-16 17:29:22 +00:00
|
|
|
'publish' => array( 'global' => false, 'user' => true ),
|
|
|
|
);
|
|
|
|
|
|
|
|
/* Setup */
|
|
|
|
|
2015-03-16 00:51:32 +00:00
|
|
|
$wgExtensionCredits['other'][] = array(
|
2010-09-16 17:29:22 +00:00
|
|
|
'path' => __FILE__,
|
|
|
|
'name' => 'WikiEditor',
|
2015-05-17 07:07:32 +00:00
|
|
|
'author' => array(
|
|
|
|
'Derk-Jan Hartman',
|
|
|
|
'Trevor Parscal',
|
|
|
|
'Roan Kattouw',
|
|
|
|
'Nimish Gautam',
|
|
|
|
'Adam Miller'
|
|
|
|
),
|
|
|
|
'version' => '0.5.0',
|
2011-12-13 23:49:33 +00:00
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:WikiEditor',
|
2010-09-16 17:29:22 +00:00
|
|
|
'descriptionmsg' => 'wikieditor-desc',
|
|
|
|
);
|
2015-03-16 00:51:32 +00:00
|
|
|
$wgAutoloadClasses['WikiEditorHooks'] = __DIR__ . '/WikiEditor.hooks.php';
|
|
|
|
$wgMessagesDirs['WikiEditor'] = __DIR__ . '/i18n';
|
|
|
|
$wgHooks['EditPage::showEditForm:initial'][] =
|
2015-02-08 16:24:29 +00:00
|
|
|
'WikiEditorHooks::editPageShowEditFormInitial';
|
2015-03-16 00:51:32 +00:00
|
|
|
$wgHooks['GetPreferences'][] = 'WikiEditorHooks::getPreferences';
|
|
|
|
$wgHooks['ResourceLoaderGetConfigVars'][] =
|
2015-02-08 16:24:29 +00:00
|
|
|
'WikiEditorHooks::resourceLoaderGetConfigVars';
|
2015-03-16 00:51:32 +00:00
|
|
|
$wgHooks['ResourceLoaderTestModules'][] = 'WikiEditorHooks::resourceLoaderTestModules';
|
|
|
|
$wgHooks['MakeGlobalVariablesScript'][] = 'WikiEditorHooks::makeGlobalVariablesScript';
|
|
|
|
$wgHooks['EditPageBeforeEditToolbar'][] = 'WikiEditorHooks::EditPageBeforeEditToolbar';
|
|
|
|
$wgHooks['EditPage::showEditForm:fields'][] = 'WikiEditorHooks::editPageShowEditFormFields';
|
|
|
|
$wgHooks['BeforePageDisplay'][] = 'WikiEditorHooks::onBeforePageDisplay';
|
|
|
|
$wgHooks['EditPage::attemptSave'][] = 'WikiEditorHooks::editPageAttemptSave';
|
|
|
|
$wgHooks['EditPage::attemptSave:after'][] = 'WikiEditorHooks::editPageAttemptSaveAfter';
|
2010-11-19 13:59:34 +00:00
|
|
|
|
2015-03-24 21:14:16 +00:00
|
|
|
$wikiEditorTpl = array(
|
2014-03-29 16:14:05 +00:00
|
|
|
'localBasePath' => __DIR__ . '/modules',
|
2010-11-19 13:59:34 +00:00
|
|
|
'remoteExtPath' => 'WikiEditor/modules',
|
|
|
|
'group' => 'ext.wikiEditor',
|
|
|
|
);
|
|
|
|
|
2015-03-16 00:51:32 +00:00
|
|
|
$wgResourceModules += array(
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2010-11-19 13:59:34 +00:00
|
|
|
/* WikiEditor jQuery plugin Resources */
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2010-11-19 13:59:34 +00:00
|
|
|
'jquery.wikiEditor' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'jquery.wikiEditor.js',
|
2015-02-08 16:24:29 +00:00
|
|
|
'styles' => 'jquery.wikiEditor.less',
|
2010-11-19 13:59:34 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.client',
|
|
|
|
'jquery.textSelection',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'wikieditor-wikitext-tab',
|
|
|
|
'wikieditor-loading',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'jquery.wikiEditor.dialogs' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'jquery.wikiEditor.dialogs.js',
|
2015-02-08 16:24:29 +00:00
|
|
|
'styles' => 'jquery.wikiEditor.dialogs.less',
|
2010-11-19 13:59:34 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.wikiEditor',
|
|
|
|
'jquery.wikiEditor.toolbar',
|
|
|
|
'jquery.ui.dialog',
|
|
|
|
'jquery.ui.button',
|
|
|
|
'jquery.ui.draggable',
|
|
|
|
'jquery.ui.resizable',
|
|
|
|
'jquery.tabIndex',
|
|
|
|
),
|
|
|
|
),
|
2011-02-24 01:45:55 +00:00
|
|
|
'jquery.wikiEditor.dialogs.config' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'jquery.wikiEditor.dialogs.config.js',
|
2015-02-08 16:24:29 +00:00
|
|
|
'styles' => 'jquery.wikiEditor.dialogs.config.less',
|
2011-02-24 01:45:55 +00:00
|
|
|
'dependencies' => array(
|
2015-01-07 18:14:44 +00:00
|
|
|
'jquery.mwExtension',
|
2011-02-24 01:45:55 +00:00
|
|
|
'jquery.wikiEditor',
|
|
|
|
'jquery.wikiEditor.dialogs',
|
|
|
|
'jquery.wikiEditor.toolbar.i18n',
|
|
|
|
'jquery.suggestions',
|
2015-01-07 18:25:47 +00:00
|
|
|
'mediawiki.api',
|
2012-05-27 19:14:34 +00:00
|
|
|
'mediawiki.Title',
|
2012-12-28 23:54:23 +00:00
|
|
|
'mediawiki.jqueryMsg',
|
2012-05-27 19:14:34 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'wikieditor-toolbar-tool-file-title',
|
|
|
|
'wikieditor-toolbar-file-target',
|
|
|
|
'wikieditor-toolbar-file-caption',
|
|
|
|
'wikieditor-toolbar-file-size',
|
|
|
|
'wikieditor-toolbar-file-float',
|
|
|
|
'wikieditor-toolbar-file-default',
|
2012-08-19 19:02:05 +00:00
|
|
|
'wikieditor-toolbar-file-format-none',
|
2012-05-27 19:14:34 +00:00
|
|
|
'wikieditor-toolbar-file-format',
|
|
|
|
'wikieditor-toolbar-tool-file-insert',
|
|
|
|
'wikieditor-toolbar-tool-file-cancel',
|
2011-02-24 01:45:55 +00:00
|
|
|
),
|
|
|
|
),
|
2010-11-19 13:59:34 +00:00
|
|
|
'jquery.wikiEditor.preview' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'jquery.wikiEditor.preview.js',
|
2015-02-08 16:24:29 +00:00
|
|
|
'styles' => 'jquery.wikiEditor.preview.less',
|
2015-01-07 18:25:47 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.wikiEditor',
|
|
|
|
'mediawiki.api',
|
|
|
|
),
|
2010-11-19 13:59:34 +00:00
|
|
|
),
|
|
|
|
'jquery.wikiEditor.publish' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'jquery.wikiEditor.publish.js',
|
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.wikiEditor',
|
|
|
|
'jquery.wikiEditor.dialogs',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'jquery.wikiEditor.toolbar' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'jquery.wikiEditor.toolbar.js',
|
2015-02-08 16:24:29 +00:00
|
|
|
'styles' => 'jquery.wikiEditor.toolbar.less',
|
2011-07-05 16:52:29 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.wikiEditor',
|
|
|
|
'jquery.wikiEditor.toolbar.i18n',
|
2014-06-15 23:11:56 +00:00
|
|
|
'jquery.cookie',
|
|
|
|
'jquery.async',
|
2011-07-05 16:52:29 +00:00
|
|
|
),
|
2010-11-19 13:59:34 +00:00
|
|
|
),
|
2011-02-24 01:45:55 +00:00
|
|
|
'jquery.wikiEditor.toolbar.config' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'jquery.wikiEditor.toolbar.config.js',
|
2010-11-19 13:59:34 +00:00
|
|
|
'dependencies' => array(
|
2011-02-24 01:45:55 +00:00
|
|
|
'jquery.wikiEditor',
|
|
|
|
'jquery.wikiEditor.toolbar.i18n',
|
2010-11-19 13:59:34 +00:00
|
|
|
'jquery.wikiEditor.toolbar',
|
2015-03-27 22:44:09 +00:00
|
|
|
'mediawiki.language.specialCharacters',
|
2015-03-14 15:49:04 +00:00
|
|
|
),
|
2011-01-07 16:05:20 +00:00
|
|
|
),
|
2011-02-24 01:45:55 +00:00
|
|
|
'jquery.wikiEditor.toolbar.i18n' => $wikiEditorTpl + array(
|
2010-11-19 13:59:34 +00:00
|
|
|
'messages' => array(
|
2011-02-24 01:45:55 +00:00
|
|
|
// This is a mixed bunch that needs to be separated between dialog and toolbar messages,
|
|
|
|
// but since both the dialog and toolbar config have this as dependency, it's not urgent
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-loading',
|
|
|
|
/* Main Section */
|
|
|
|
'wikieditor-toolbar-tool-bold',
|
|
|
|
'wikieditor-toolbar-tool-bold-example',
|
|
|
|
'wikieditor-toolbar-tool-italic',
|
|
|
|
'wikieditor-toolbar-tool-italic-example',
|
|
|
|
'wikieditor-toolbar-tool-ilink',
|
|
|
|
'wikieditor-toolbar-tool-ilink-example',
|
|
|
|
'wikieditor-toolbar-tool-xlink',
|
|
|
|
'wikieditor-toolbar-tool-xlink-example',
|
|
|
|
'wikieditor-toolbar-tool-link',
|
|
|
|
'wikieditor-toolbar-tool-link-title',
|
|
|
|
'wikieditor-toolbar-tool-link-int',
|
|
|
|
'wikieditor-toolbar-tool-link-int-target',
|
|
|
|
'wikieditor-toolbar-tool-link-int-target-tooltip',
|
|
|
|
'wikieditor-toolbar-tool-link-int-text',
|
|
|
|
'wikieditor-toolbar-tool-link-int-text-tooltip',
|
|
|
|
'wikieditor-toolbar-tool-link-ext',
|
|
|
|
'wikieditor-toolbar-tool-link-ext-target',
|
|
|
|
'wikieditor-toolbar-tool-link-ext-text',
|
|
|
|
'wikieditor-toolbar-tool-link-insert',
|
|
|
|
'wikieditor-toolbar-tool-link-cancel',
|
|
|
|
'wikieditor-toolbar-tool-link-int-target-status-exists',
|
|
|
|
'wikieditor-toolbar-tool-link-int-target-status-notexists',
|
|
|
|
'wikieditor-toolbar-tool-link-int-target-status-invalid',
|
|
|
|
'wikieditor-toolbar-tool-link-int-target-status-external',
|
|
|
|
'wikieditor-toolbar-tool-link-int-target-status-loading',
|
2013-06-25 23:23:42 +00:00
|
|
|
'wikieditor-toolbar-tool-link-int-target-status-disambig',
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-tool-link-int-invalid',
|
|
|
|
'wikieditor-toolbar-tool-link-lookslikeinternal',
|
|
|
|
'wikieditor-toolbar-tool-link-lookslikeinternal-int',
|
|
|
|
'wikieditor-toolbar-tool-link-lookslikeinternal-ext',
|
|
|
|
'wikieditor-toolbar-tool-link-empty',
|
|
|
|
'wikieditor-toolbar-tool-file',
|
|
|
|
'wikieditor-toolbar-tool-file-example',
|
2011-02-23 20:50:52 +00:00
|
|
|
'wikieditor-toolbar-tool-file-pre',
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-tool-reference',
|
|
|
|
'wikieditor-toolbar-tool-reference-title',
|
|
|
|
'wikieditor-toolbar-tool-reference-cancel',
|
|
|
|
'wikieditor-toolbar-tool-reference-text',
|
|
|
|
'wikieditor-toolbar-tool-reference-insert',
|
|
|
|
'wikieditor-toolbar-tool-reference-example',
|
|
|
|
'wikieditor-toolbar-tool-signature',
|
|
|
|
/* Formatting Section */
|
|
|
|
'wikieditor-toolbar-section-advanced',
|
|
|
|
'wikieditor-toolbar-tool-heading',
|
|
|
|
'wikieditor-toolbar-tool-heading-1',
|
|
|
|
'wikieditor-toolbar-tool-heading-2',
|
|
|
|
'wikieditor-toolbar-tool-heading-3',
|
|
|
|
'wikieditor-toolbar-tool-heading-4',
|
|
|
|
'wikieditor-toolbar-tool-heading-5',
|
|
|
|
'wikieditor-toolbar-tool-heading-example',
|
|
|
|
'wikieditor-toolbar-group-format',
|
|
|
|
'wikieditor-toolbar-tool-ulist',
|
|
|
|
'wikieditor-toolbar-tool-ulist-example',
|
|
|
|
'wikieditor-toolbar-tool-olist',
|
|
|
|
'wikieditor-toolbar-tool-olist-example',
|
|
|
|
'wikieditor-toolbar-tool-nowiki',
|
|
|
|
'wikieditor-toolbar-tool-nowiki-example',
|
|
|
|
'wikieditor-toolbar-tool-redirect',
|
|
|
|
'wikieditor-toolbar-tool-redirect-example',
|
|
|
|
'wikieditor-toolbar-tool-big',
|
|
|
|
'wikieditor-toolbar-tool-big-example',
|
|
|
|
'wikieditor-toolbar-tool-small',
|
|
|
|
'wikieditor-toolbar-tool-small-example',
|
|
|
|
'wikieditor-toolbar-tool-superscript',
|
|
|
|
'wikieditor-toolbar-tool-superscript-example',
|
|
|
|
'wikieditor-toolbar-tool-subscript',
|
|
|
|
'wikieditor-toolbar-tool-subscript-example',
|
|
|
|
'wikieditor-toolbar-group-insert',
|
|
|
|
'wikieditor-toolbar-tool-gallery',
|
|
|
|
'wikieditor-toolbar-tool-gallery-example',
|
|
|
|
'wikieditor-toolbar-tool-newline',
|
|
|
|
'wikieditor-toolbar-tool-table',
|
|
|
|
'wikieditor-toolbar-tool-table-example-old',
|
|
|
|
'wikieditor-toolbar-tool-table-example-cell-text',
|
|
|
|
'wikieditor-toolbar-tool-table-example',
|
|
|
|
'wikieditor-toolbar-tool-table-example-header',
|
|
|
|
'wikieditor-toolbar-tool-table-title',
|
|
|
|
'wikieditor-toolbar-tool-table-dimensions-rows',
|
|
|
|
'wikieditor-toolbar-tool-table-dimensions-columns',
|
|
|
|
'wikieditor-toolbar-tool-table-dimensions-header',
|
|
|
|
'wikieditor-toolbar-tool-table-wikitable',
|
|
|
|
'wikieditor-toolbar-tool-table-sortable',
|
|
|
|
'wikieditor-toolbar-tool-table-insert',
|
|
|
|
'wikieditor-toolbar-tool-table-cancel',
|
|
|
|
'wikieditor-toolbar-tool-table-example-text',
|
|
|
|
'wikieditor-toolbar-tool-table-toomany',
|
|
|
|
'wikieditor-toolbar-tool-table-invalidnumber',
|
|
|
|
'wikieditor-toolbar-tool-table-zero',
|
|
|
|
'wikieditor-toolbar-tool-replace',
|
|
|
|
'wikieditor-toolbar-tool-replace-title',
|
|
|
|
'wikieditor-toolbar-tool-replace-search',
|
|
|
|
'wikieditor-toolbar-tool-replace-replace',
|
|
|
|
'wikieditor-toolbar-tool-replace-case',
|
|
|
|
'wikieditor-toolbar-tool-replace-regex',
|
|
|
|
'wikieditor-toolbar-tool-replace-button-findnext',
|
2011-10-31 08:38:35 +00:00
|
|
|
'wikieditor-toolbar-tool-replace-button-replace',
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-tool-replace-button-replaceall',
|
|
|
|
'wikieditor-toolbar-tool-replace-close',
|
|
|
|
'wikieditor-toolbar-tool-replace-nomatch',
|
|
|
|
'wikieditor-toolbar-tool-replace-success',
|
|
|
|
'wikieditor-toolbar-tool-replace-emptysearch',
|
|
|
|
'wikieditor-toolbar-tool-replace-invalidregex',
|
|
|
|
/* Special Characters Section */
|
|
|
|
'wikieditor-toolbar-section-characters',
|
|
|
|
'wikieditor-toolbar-characters-page-latin',
|
|
|
|
'wikieditor-toolbar-characters-page-latinextended',
|
|
|
|
'wikieditor-toolbar-characters-page-ipa',
|
|
|
|
'wikieditor-toolbar-characters-page-symbols',
|
|
|
|
'wikieditor-toolbar-characters-page-greek',
|
|
|
|
'wikieditor-toolbar-characters-page-cyrillic',
|
|
|
|
'wikieditor-toolbar-characters-page-arabic',
|
2011-08-30 16:22:26 +00:00
|
|
|
'wikieditor-toolbar-characters-page-arabicextended',
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-characters-page-persian',
|
|
|
|
'wikieditor-toolbar-characters-page-hebrew',
|
|
|
|
'wikieditor-toolbar-characters-page-bangla',
|
2012-04-01 12:19:29 +00:00
|
|
|
'wikieditor-toolbar-characters-page-tamil',
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-characters-page-telugu',
|
|
|
|
'wikieditor-toolbar-characters-page-sinhala',
|
2012-05-20 12:33:00 +00:00
|
|
|
'wikieditor-toolbar-characters-page-devanagari',
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-characters-page-gujarati',
|
|
|
|
'wikieditor-toolbar-characters-page-thai',
|
|
|
|
'wikieditor-toolbar-characters-page-lao',
|
|
|
|
'wikieditor-toolbar-characters-page-khmer',
|
2012-10-11 00:10:09 +00:00
|
|
|
'wikieditor-toolbar-characters-endash',
|
|
|
|
'wikieditor-toolbar-characters-emdash',
|
|
|
|
'wikieditor-toolbar-characters-minus',
|
2010-11-19 13:59:34 +00:00
|
|
|
/* Help Section */
|
|
|
|
'wikieditor-toolbar-section-help',
|
|
|
|
'wikieditor-toolbar-help-heading-description',
|
|
|
|
'wikieditor-toolbar-help-heading-syntax',
|
|
|
|
'wikieditor-toolbar-help-heading-result',
|
|
|
|
'wikieditor-toolbar-help-page-format',
|
|
|
|
'wikieditor-toolbar-help-page-link',
|
|
|
|
'wikieditor-toolbar-help-page-heading',
|
|
|
|
'wikieditor-toolbar-help-page-list',
|
|
|
|
'wikieditor-toolbar-help-page-file',
|
|
|
|
'wikieditor-toolbar-help-page-reference',
|
|
|
|
'wikieditor-toolbar-help-page-discussion',
|
|
|
|
'wikieditor-toolbar-help-content-bold-description',
|
|
|
|
'wikieditor-toolbar-help-content-bold-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-bold-result',
|
|
|
|
'wikieditor-toolbar-help-content-italic-description',
|
|
|
|
'wikieditor-toolbar-help-content-italic-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-italic-result',
|
|
|
|
'wikieditor-toolbar-help-content-bolditalic-description',
|
|
|
|
'wikieditor-toolbar-help-content-bolditalic-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-bolditalic-result',
|
|
|
|
'wikieditor-toolbar-help-content-ilink-description',
|
|
|
|
'wikieditor-toolbar-help-content-ilink-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-ilink-result',
|
|
|
|
'wikieditor-toolbar-help-content-xlink-description',
|
|
|
|
'wikieditor-toolbar-help-content-xlink-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-xlink-result',
|
|
|
|
'wikieditor-toolbar-help-content-heading1-description',
|
|
|
|
'wikieditor-toolbar-help-content-heading1-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-heading1-result',
|
|
|
|
'wikieditor-toolbar-help-content-heading2-description',
|
|
|
|
'wikieditor-toolbar-help-content-heading2-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-heading2-result',
|
|
|
|
'wikieditor-toolbar-help-content-heading3-description',
|
|
|
|
'wikieditor-toolbar-help-content-heading3-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-heading3-result',
|
|
|
|
'wikieditor-toolbar-help-content-heading4-description',
|
|
|
|
'wikieditor-toolbar-help-content-heading4-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-heading4-result',
|
|
|
|
'wikieditor-toolbar-help-content-heading5-description',
|
|
|
|
'wikieditor-toolbar-help-content-heading5-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-heading5-result',
|
|
|
|
'wikieditor-toolbar-help-content-ulist-description',
|
|
|
|
'wikieditor-toolbar-help-content-ulist-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-ulist-result',
|
|
|
|
'wikieditor-toolbar-help-content-olist-description',
|
|
|
|
'wikieditor-toolbar-help-content-olist-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-olist-result',
|
|
|
|
'wikieditor-toolbar-help-content-file-description',
|
|
|
|
'wikieditor-toolbar-help-content-file-syntax',
|
2015-03-14 18:26:09 +00:00
|
|
|
'wikieditor-toolbar-help-content-file-caption',
|
|
|
|
'thumbnail-more',
|
2010-11-19 13:59:34 +00:00
|
|
|
'wikieditor-toolbar-help-content-reference-description',
|
|
|
|
'wikieditor-toolbar-help-content-reference-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-reference-result',
|
|
|
|
'wikieditor-toolbar-help-content-rereference-description',
|
|
|
|
'wikieditor-toolbar-help-content-rereference-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-rereference-result',
|
|
|
|
'wikieditor-toolbar-help-content-showreferences-description',
|
|
|
|
'wikieditor-toolbar-help-content-showreferences-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-showreferences-result',
|
|
|
|
'wikieditor-toolbar-help-content-signaturetimestamp-description',
|
|
|
|
'wikieditor-toolbar-help-content-signaturetimestamp-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-signaturetimestamp-result',
|
|
|
|
'wikieditor-toolbar-help-content-signature-description',
|
|
|
|
'wikieditor-toolbar-help-content-signature-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-signature-result',
|
|
|
|
'wikieditor-toolbar-help-content-indent-description',
|
|
|
|
'wikieditor-toolbar-help-content-indent-syntax',
|
|
|
|
'wikieditor-toolbar-help-content-indent-result',
|
|
|
|
),
|
|
|
|
),
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2011-02-24 01:45:55 +00:00
|
|
|
/* WikiEditor Resources */
|
2012-01-31 20:19:22 +00:00
|
|
|
|
2011-02-24 01:45:55 +00:00
|
|
|
'ext.wikiEditor' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'ext.wikiEditor.js',
|
2015-02-08 16:24:29 +00:00
|
|
|
'styles' => 'ext.wikiEditor.less',
|
2015-02-05 16:47:49 +00:00
|
|
|
'dependencies' => array(
|
2015-04-20 00:02:06 +00:00
|
|
|
'jquery.wikiEditor',
|
|
|
|
'mediawiki.user'
|
2015-02-05 16:47:49 +00:00
|
|
|
),
|
2011-02-24 01:45:55 +00:00
|
|
|
),
|
|
|
|
'ext.wikiEditor.dialogs' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'ext.wikiEditor.dialogs.js',
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.wikiEditor',
|
|
|
|
'ext.wikiEditor.toolbar',
|
|
|
|
'jquery.wikiEditor.dialogs',
|
|
|
|
'jquery.wikiEditor.dialogs.config',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'ext.wikiEditor.preview' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'ext.wikiEditor.preview.js',
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.wikiEditor',
|
|
|
|
'jquery.wikiEditor.preview',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'wikieditor-preview-tab',
|
|
|
|
'wikieditor-preview-changes-tab',
|
|
|
|
'wikieditor-preview-loading',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'ext.wikiEditor.publish' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'ext.wikiEditor.publish.js',
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.wikiEditor',
|
|
|
|
'jquery.wikiEditor.publish',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'wikieditor-publish-button-publish',
|
|
|
|
'wikieditor-publish-button-cancel',
|
|
|
|
'wikieditor-publish-dialog-title',
|
|
|
|
'wikieditor-publish-dialog-summary',
|
|
|
|
'wikieditor-publish-dialog-minor',
|
|
|
|
'wikieditor-publish-dialog-watch',
|
|
|
|
'wikieditor-publish-dialog-publish',
|
|
|
|
'wikieditor-publish-dialog-goback',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'ext.wikiEditor.toolbar' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'ext.wikiEditor.toolbar.js',
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.wikiEditor',
|
|
|
|
'jquery.wikiEditor.toolbar',
|
|
|
|
'jquery.wikiEditor.toolbar.config',
|
2015-03-14 15:49:04 +00:00
|
|
|
),
|
2011-02-24 01:45:55 +00:00
|
|
|
),
|
2014-04-08 20:36:38 +00:00
|
|
|
'ext.wikiEditor.toolbar.styles' => $wikiEditorTpl + array(
|
2015-02-08 16:24:29 +00:00
|
|
|
'styles' => 'ext.wikiEditor.toolbar.styles.less',
|
2014-04-08 20:36:38 +00:00
|
|
|
),
|
2011-04-22 12:10:18 +00:00
|
|
|
'ext.wikiEditor.toolbar.hideSig' => $wikiEditorTpl + array(
|
|
|
|
'scripts' => 'ext.wikiEditor.toolbar.hideSig.js',
|
|
|
|
),
|
2010-11-19 13:59:34 +00:00
|
|
|
);
|