2011-11-28 20:28:28 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* VisualEditor extension
|
2012-07-19 21:25:16 +00:00
|
|
|
*
|
2011-11-28 20:28:28 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2014-01-05 12:05:05 +00:00
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
2012-07-19 00:11:26 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
2011-11-28 20:28:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Setup */
|
|
|
|
|
|
|
|
$wgExtensionCredits['other'][] = array(
|
|
|
|
'path' => __FILE__,
|
|
|
|
'name' => 'VisualEditor',
|
|
|
|
'author' => array(
|
2014-06-28 18:31:06 +00:00
|
|
|
'Alex Monk',
|
2014-10-08 08:25:09 +00:00
|
|
|
'Bartosz Dziewoński',
|
2014-06-28 18:31:06 +00:00
|
|
|
'Christian Williams',
|
|
|
|
'David Chan',
|
|
|
|
'Ed Sanders',
|
2011-11-28 20:28:28 +00:00
|
|
|
'Inez Korczyński',
|
2014-06-28 18:31:06 +00:00
|
|
|
'James Forrester',
|
|
|
|
'Moriel Schottlender',
|
2011-11-28 20:28:28 +00:00
|
|
|
'Roan Kattouw',
|
2012-06-25 23:26:48 +00:00
|
|
|
'Rob Moen',
|
2014-10-08 08:21:52 +00:00
|
|
|
'Sucheta Ghoshal',
|
2012-07-27 23:43:27 +00:00
|
|
|
'Timo Tijhof',
|
2014-06-28 18:31:06 +00:00
|
|
|
'Trevor Parscal',
|
2011-11-28 20:28:28 +00:00
|
|
|
),
|
|
|
|
'version' => '0.1.0',
|
2011-12-13 23:49:33 +00:00
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:VisualEditor',
|
2011-11-28 20:28:28 +00:00
|
|
|
'descriptionmsg' => 'visualeditor-desc',
|
2014-01-05 03:00:35 +00:00
|
|
|
'license-name' => 'MIT',
|
2011-11-28 20:28:28 +00:00
|
|
|
);
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2013-11-20 09:33:52 +00:00
|
|
|
$dir = __DIR__ . '/';
|
2013-07-26 20:08:32 +00:00
|
|
|
|
|
|
|
// Register files
|
|
|
|
$wgAutoloadClasses['ApiVisualEditor'] = $dir . 'ApiVisualEditor.php';
|
|
|
|
$wgAutoloadClasses['ApiVisualEditorEdit'] = $dir . 'ApiVisualEditorEdit.php';
|
|
|
|
$wgAutoloadClasses['VisualEditorHooks'] = $dir . 'VisualEditor.hooks.php';
|
2013-08-30 00:55:31 +00:00
|
|
|
$wgAutoloadClasses['VisualEditorDataModule'] = $dir . 'VisualEditorDataModule.php';
|
2014-09-08 06:54:54 +00:00
|
|
|
$wgAutoloadClasses['VisualEditorViewPageTargetInitModule'] =
|
|
|
|
$dir . 'VisualEditorViewPageTargetInitModule.php';
|
2013-12-17 10:00:33 +00:00
|
|
|
$wgMessagesDirs['VisualEditor'] = array(
|
2014-08-14 21:16:47 +00:00
|
|
|
__DIR__ . '/lib/ve/i18n',
|
2013-12-17 10:00:33 +00:00
|
|
|
__DIR__ . '/modules/ve-mw/i18n',
|
|
|
|
__DIR__ . '/modules/ve-wmf/i18n',
|
|
|
|
__DIR__ . '/lib/ve/lib/oojs-ui/i18n'
|
|
|
|
);
|
2011-11-28 20:28:28 +00:00
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
// Register API modules
|
2014-08-13 08:15:42 +00:00
|
|
|
$wgAPIModules['visualeditor'] = array(
|
|
|
|
'class' => 'ApiVisualEditor',
|
|
|
|
'factory' => 'wfVisualEditorApiFactory',
|
|
|
|
);
|
|
|
|
$wgAPIModules['visualeditoredit'] = array(
|
|
|
|
'class' => 'ApiVisualEditorEdit',
|
|
|
|
'factory' => 'wfVisualEditorApiFactory',
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param ApiMain $main
|
|
|
|
* @param string $name
|
|
|
|
* @return ApiVisualEditor|ApiVisualEditorEdit
|
|
|
|
*/
|
|
|
|
function wfVisualEditorApiFactory( $main, $name ) {
|
|
|
|
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'visualeditor' );
|
|
|
|
$class = $name === 'visualeditor' ? 'ApiVisualEditor' : 'ApiVisualEditorEdit';
|
|
|
|
return new $class( $main, $name, $config );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Register Config instance
|
|
|
|
$wgConfigRegistry['visualeditor'] = 'GlobalVarConfig::newInstance';
|
2013-07-26 20:08:32 +00:00
|
|
|
|
|
|
|
// Register Hooks
|
|
|
|
$wgHooks['BeforePageDisplay'][] = 'VisualEditorHooks::onBeforePageDisplay';
|
2014-10-06 19:02:55 +00:00
|
|
|
$wgHooks['ContentHandlerDefaultModelFor'][] = 'VisualEditorHooks::onContentHandlerDefaultModelFor';
|
2013-08-01 19:14:41 +00:00
|
|
|
$wgHooks['DoEditSectionLink'][] = 'VisualEditorHooks::onDoEditSectionLink';
|
2014-01-08 03:31:09 +00:00
|
|
|
$wgHooks['GetBetaFeaturePreferences'][] = 'VisualEditorHooks::onGetBetaPreferences';
|
2013-07-26 20:08:32 +00:00
|
|
|
$wgHooks['GetPreferences'][] = 'VisualEditorHooks::onGetPreferences';
|
|
|
|
$wgHooks['ListDefinedTags'][] = 'VisualEditorHooks::onListDefinedTags';
|
|
|
|
$wgHooks['MakeGlobalVariablesScript'][] = 'VisualEditorHooks::onMakeGlobalVariablesScript';
|
2014-05-22 07:04:41 +00:00
|
|
|
$wgHooks['RedirectSpecialArticleRedirectParams'][] =
|
|
|
|
'VisualEditorHooks::onRedirectSpecialArticleRedirectParams';
|
2013-07-26 20:08:32 +00:00
|
|
|
$wgHooks['ResourceLoaderGetConfigVars'][] = 'VisualEditorHooks::onResourceLoaderGetConfigVars';
|
2013-12-05 02:28:59 +00:00
|
|
|
$wgHooks['ResourceLoaderRegisterModules'][] = 'VisualEditorHooks::onResourceLoaderRegisterModules';
|
2013-07-26 20:08:32 +00:00
|
|
|
$wgHooks['ResourceLoaderTestModules'][] = 'VisualEditorHooks::onResourceLoaderTestModules';
|
2013-08-01 19:14:41 +00:00
|
|
|
$wgHooks['SkinTemplateNavigation'][] = 'VisualEditorHooks::onSkinTemplateNavigation';
|
2013-09-16 21:12:50 +00:00
|
|
|
$wgHooks['ParserTestGlobals'][] = 'VisualEditorHooks::onParserTestGlobals';
|
2014-02-16 15:17:44 +00:00
|
|
|
$wgHooks['EditPage::showEditForm:fields'][] = 'VisualEditorHooks::onEditPageShowEditFormFields';
|
|
|
|
$wgHooks['PageContentSaveComplete'][] = 'VisualEditorHooks::onPageContentSaveComplete';
|
2014-06-09 22:58:15 +00:00
|
|
|
$wgHooks['BeforeInitialize'][] = 'VisualEditorHooks::onBeforeInitialize';
|
2013-07-26 20:08:32 +00:00
|
|
|
$wgExtensionFunctions[] = 'VisualEditorHooks::onSetup';
|
|
|
|
|
|
|
|
// Register resource modules
|
|
|
|
|
2011-11-28 20:28:28 +00:00
|
|
|
$wgVisualEditorResourceTemplate = array(
|
2013-12-19 20:28:07 +00:00
|
|
|
'localBasePath' => __DIR__,
|
|
|
|
'remoteExtPath' => 'VisualEditor',
|
2011-11-28 20:28:28 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$wgResourceModules += array(
|
2012-12-13 00:22:10 +00:00
|
|
|
'jquery.visibleText' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
2013-12-19 23:07:19 +00:00
|
|
|
'lib/ve/lib/jquery/jquery.visibleText.js',
|
2013-03-18 11:31:14 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2013-03-18 11:31:14 +00:00
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2014-06-23 17:55:59 +00:00
|
|
|
'Base64.js' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'lib/Base64.js/base64.js',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
// This includes typed arrays and base64 polyfills for IE9
|
|
|
|
// All the other polyfills Easy-Deflate provides are
|
|
|
|
// already VE requirements.
|
|
|
|
'easy-deflate.core' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'lib/Easy-Deflate/easydeflate.js',
|
|
|
|
'lib/Easy-Deflate/typedarrays.js',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'Base64.js'
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'easy-deflate.deflate' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'lib/Easy-Deflate/deflate.js',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'easy-deflate.core'
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2014-08-14 21:16:47 +00:00
|
|
|
'unicodejs' => $wgVisualEditorResourceTemplate + array(
|
2013-03-18 11:31:14 +00:00
|
|
|
'scripts' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/lib/unicodejs/unicodejs.js',
|
2012-12-13 00:22:10 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2012-12-13 00:22:10 +00:00
|
|
|
),
|
2013-06-17 21:12:21 +00:00
|
|
|
|
2014-08-14 21:16:47 +00:00
|
|
|
// Back compat alias, can be removed after October 2014 or so
|
|
|
|
'unicodejs.wordbreak' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'dependencies' => 'unicodejs'
|
|
|
|
),
|
|
|
|
|
2014-11-24 11:27:25 +00:00
|
|
|
'papaparse' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => 'lib/ve/lib/papaparse/papaparse.js',
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2014-11-04 23:28:52 +00:00
|
|
|
'rangefix' => $wgVisualEditorResourceTemplate + array(
|
2014-11-05 19:02:40 +00:00
|
|
|
'scripts' => 'lib/ve/lib/rangefix/rangefix.js',
|
|
|
|
'targets' => array( 'desktop', 'mobile' )
|
2014-11-04 23:28:52 +00:00
|
|
|
),
|
|
|
|
|
2013-07-03 22:14:52 +00:00
|
|
|
'ext.visualEditor.viewPageTarget.init' => $wgVisualEditorResourceTemplate + array(
|
2014-09-08 06:54:54 +00:00
|
|
|
'class' => 'VisualEditorViewPageTargetInitModule',
|
2013-12-19 20:28:07 +00:00
|
|
|
'scripts' => 'modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js',
|
2014-02-20 22:55:49 +00:00
|
|
|
'styles' => 'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget.init.css',
|
2013-07-03 22:14:52 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.client',
|
2014-02-15 17:45:32 +00:00
|
|
|
'mediawiki.page.startup',
|
2013-07-19 02:44:22 +00:00
|
|
|
'mediawiki.Title',
|
2013-07-03 22:14:52 +00:00
|
|
|
'mediawiki.Uri',
|
|
|
|
'mediawiki.util',
|
2013-07-26 13:54:29 +00:00
|
|
|
'user.options',
|
2014-11-10 12:53:47 +00:00
|
|
|
'ext.visualEditor.track',
|
2013-07-03 22:14:52 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
2013-07-05 05:51:31 +00:00
|
|
|
'accesskey-ca-editsource',
|
2013-07-05 06:01:31 +00:00
|
|
|
'accesskey-ca-ve-edit',
|
2014-01-30 19:33:30 +00:00
|
|
|
'accesskey-save',
|
2013-07-05 06:01:31 +00:00
|
|
|
'pipe-separator',
|
2013-07-03 22:14:52 +00:00
|
|
|
'tooltip-ca-createsource',
|
|
|
|
'tooltip-ca-editsource',
|
|
|
|
'tooltip-ca-ve-edit',
|
2013-07-05 06:01:31 +00:00
|
|
|
'visualeditor-ca-editsource-section',
|
2013-07-03 22:14:52 +00:00
|
|
|
),
|
|
|
|
'position' => 'top',
|
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2013-08-01 19:14:41 +00:00
|
|
|
'ext.visualEditor.viewPageTarget.noscript' => $wgVisualEditorResourceTemplate + array(
|
2014-02-20 22:55:49 +00:00
|
|
|
'styles' => 'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget.noscript.css',
|
2013-08-01 19:14:41 +00:00
|
|
|
),
|
|
|
|
|
2012-06-28 09:52:03 +00:00
|
|
|
'ext.visualEditor.viewPageTarget' => $wgVisualEditorResourceTemplate + array(
|
2012-05-25 19:50:48 +00:00
|
|
|
'scripts' => array(
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js',
|
2012-06-11 06:54:41 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
2014-02-20 22:55:49 +00:00
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget.css',
|
2012-08-17 20:16:25 +00:00
|
|
|
),
|
|
|
|
'skinStyles' => array(
|
|
|
|
'vector' => array(
|
2014-02-20 22:55:49 +00:00
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget-shared.css',
|
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget-vector.css',
|
2012-06-14 01:26:21 +00:00
|
|
|
),
|
2012-08-17 20:16:25 +00:00
|
|
|
'apex' => array(
|
2014-02-20 22:55:49 +00:00
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget-shared.css',
|
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget-apex.css',
|
2012-08-23 18:01:20 +00:00
|
|
|
),
|
|
|
|
'monobook' => array(
|
2014-02-20 22:55:49 +00:00
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget-shared.css',
|
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget-monobook.css',
|
2012-08-17 20:16:25 +00:00
|
|
|
)
|
2012-06-11 06:54:41 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
2012-07-20 23:59:59 +00:00
|
|
|
'ext.visualEditor.base',
|
2013-05-14 23:45:42 +00:00
|
|
|
'ext.visualEditor.mediawiki',
|
2014-03-14 19:52:40 +00:00
|
|
|
'ext.visualEditor.core.desktop',
|
2012-12-02 03:44:07 +00:00
|
|
|
'jquery.placeholder',
|
2013-07-03 22:14:52 +00:00
|
|
|
'mediawiki.feedback',
|
2012-12-05 22:45:20 +00:00
|
|
|
'mediawiki.jqueryMsg',
|
2013-12-14 21:55:09 +00:00
|
|
|
'mediawiki.util',
|
2012-05-25 19:50:48 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
2013-06-12 19:10:22 +00:00
|
|
|
// MW core messages
|
2013-05-17 16:09:20 +00:00
|
|
|
'creating',
|
|
|
|
'editing',
|
2014-10-31 00:26:32 +00:00
|
|
|
'lastmodifiedat',
|
2014-09-08 18:47:56 +00:00
|
|
|
'parentheses',
|
|
|
|
'redirectpagesub',
|
2013-07-16 14:07:20 +00:00
|
|
|
'spamprotectionmatch',
|
|
|
|
'spamprotectiontext',
|
2014-02-10 18:33:13 +00:00
|
|
|
'summary-preview',
|
2013-06-12 19:10:22 +00:00
|
|
|
|
|
|
|
// Messages needed by VE in init phase only (rest go below)
|
2014-05-01 20:51:32 +00:00
|
|
|
'postedit-confirmation-created',
|
|
|
|
'postedit-confirmation-restored',
|
|
|
|
'postedit-confirmation-saved',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-loadwarning',
|
|
|
|
'visualeditor-loadwarning-token',
|
mw.ViewPageTarget: Refetch token if session expired
* Rephrased visualeditor-savedialog-error-badtoken to emphasise
that it is the old session that become invalid, not the one
the user started browsing with since in a different window.
* If the session changed, the user will be asked whether they
agree to save with this new session instead.
* We explictly update mw.config so that future save attempts
in the same window compare against the correct environment.
Without this there are two problems when saving and then
making a second edit in the same window and saving that:
- It will bring up the same question again (user A -> user B),
which is annoying.
- If the user logged back in again (new session, but for
user A again) it would silently try with that new token
without asking, thus saving as user A when the user still
thinks it switched to user B. It switching back automatically
is not obvious since we asked them from A->B, so we should
also ask the other way around.
This can be reproduced by opending ve-edit logged-in, then
logging out in a new window, save, confirm anon, save,
open edit again, log back in in a new window, save open edit
in the old window, confirm new logged-in, save.
Bug: 50424
Change-Id: Id055eca1886f85aeaf615f645de29898afc0373c
2013-07-12 18:27:35 +00:00
|
|
|
'visualeditor-savedialog-identify-anon',
|
|
|
|
'visualeditor-savedialog-identify-user',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-timeout',
|
2012-05-25 19:50:48 +00:00
|
|
|
),
|
2012-06-11 06:54:41 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'ext.visualEditor.mobileViewTarget' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/init/targets/ve.init.mw.MobileViewTarget.js',
|
2013-10-11 18:42:46 +00:00
|
|
|
),
|
2014-03-14 19:52:40 +00:00
|
|
|
'styles' => array(
|
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.MobileViewTarget.css',
|
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.base',
|
2014-10-20 19:43:03 +00:00
|
|
|
'ext.visualEditor.mediawiki.mobile',
|
2014-03-14 19:52:40 +00:00
|
|
|
'ext.visualEditor.core.mobile',
|
2014-06-09 22:08:16 +00:00
|
|
|
'ext.visualEditor.mwimage.core',
|
2013-10-11 18:42:46 +00:00
|
|
|
),
|
|
|
|
'targets' => array( 'mobile' ),
|
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2014-11-10 12:53:47 +00:00
|
|
|
'ext.visualEditor.ve' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => 'lib/ve/src/ve.js',
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.track' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => 'lib/ve/src/ve.track.js',
|
|
|
|
'dependencies' => 'ext.visualEditor.ve',
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2012-06-11 06:54:41 +00:00
|
|
|
'ext.visualEditor.base' => $wgVisualEditorResourceTemplate + array(
|
2011-11-28 20:28:28 +00:00
|
|
|
'scripts' => array(
|
2012-05-24 22:15:11 +00:00
|
|
|
// ve
|
2014-11-10 12:53:47 +00:00
|
|
|
'lib/ve/src/ve.utils.js',
|
2013-04-03 03:47:40 +00:00
|
|
|
|
|
|
|
// init
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/init/ve.init.js',
|
|
|
|
'lib/ve/src/init/ve.init.Platform.js',
|
|
|
|
'lib/ve/src/init/ve.init.Target.js',
|
2013-05-14 23:45:42 +00:00
|
|
|
),
|
|
|
|
'debugScripts' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ve.debug.js',
|
2013-05-14 23:45:42 +00:00
|
|
|
),
|
2013-05-30 15:39:22 +00:00
|
|
|
'dependencies' => array(
|
2013-06-06 01:52:04 +00:00
|
|
|
'oojs',
|
2013-10-09 20:09:59 +00:00
|
|
|
'oojs-ui',
|
2014-08-14 21:16:47 +00:00
|
|
|
'unicodejs',
|
2014-11-04 23:28:52 +00:00
|
|
|
'rangefix',
|
2014-11-10 12:53:47 +00:00
|
|
|
'ext.visualEditor.ve',
|
2013-05-30 15:39:22 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2013-05-14 23:45:42 +00:00
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2013-05-14 23:45:42 +00:00
|
|
|
'ext.visualEditor.mediawiki' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
// init
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/init/ve.init.mw.js',
|
2014-03-11 00:46:26 +00:00
|
|
|
'modules/ve-mw/init/ve.init.mw.LinkCache.js',
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/init/ve.init.mw.Platform.js',
|
|
|
|
'modules/ve-mw/init/ve.init.mw.Target.js',
|
2013-12-10 01:39:46 +00:00
|
|
|
'modules/ve-mw/init/ve.init.mw.TargetEvents.js',
|
2014-10-29 01:19:52 +00:00
|
|
|
'modules/ve-mw/init/ve.init.mw.trackSubscriber.js',
|
2013-04-29 21:48:27 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
2013-10-11 18:42:46 +00:00
|
|
|
'jquery.visibleText',
|
2013-10-06 06:12:51 +00:00
|
|
|
'jquery.byteLength',
|
2013-04-29 21:48:27 +00:00
|
|
|
'jquery.client',
|
2013-10-11 18:42:46 +00:00
|
|
|
'mediawiki.api',
|
2014-10-05 18:57:53 +00:00
|
|
|
'mediawiki.language',
|
2013-10-11 18:42:46 +00:00
|
|
|
'mediawiki.Title',
|
|
|
|
'mediawiki.Uri',
|
|
|
|
'mediawiki.user',
|
2013-12-14 21:55:09 +00:00
|
|
|
'mediawiki.util',
|
2014-06-23 17:55:59 +00:00
|
|
|
'easy-deflate.deflate',
|
2013-10-11 18:42:46 +00:00
|
|
|
'user.options',
|
|
|
|
'user.tokens',
|
2013-05-14 23:45:42 +00:00
|
|
|
'ext.visualEditor.base',
|
2014-11-10 22:56:44 +00:00
|
|
|
'ext.visualEditor.track',
|
2012-06-18 20:30:14 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2013-05-14 23:45:42 +00:00
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2014-10-20 19:43:03 +00:00
|
|
|
'ext.visualEditor.mediawiki.mobile' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/ui/ve.ui.MWMobileContext.js',
|
|
|
|
'modules/ve-mw/ui/ve.ui.MWMobileSurface.js',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mediawiki',
|
2014-10-21 18:19:36 +00:00
|
|
|
'ext.visualEditor.core.mobile',
|
2014-10-20 19:43:03 +00:00
|
|
|
),
|
|
|
|
'targets' => array( 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2013-05-14 23:45:42 +00:00
|
|
|
'ext.visualEditor.standalone' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
// init
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/init/sa/ve.init.sa.js',
|
|
|
|
'lib/ve/src/init/sa/ve.init.sa.Platform.js',
|
|
|
|
'lib/ve/src/init/sa/ve.init.sa.Target.js',
|
2013-05-14 23:45:42 +00:00
|
|
|
),
|
2013-12-09 23:25:23 +00:00
|
|
|
'styles' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/init/sa/styles/ve.init.sa.css'
|
2013-12-09 23:25:23 +00:00
|
|
|
),
|
2013-05-14 23:45:42 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.base',
|
2013-12-09 23:31:53 +00:00
|
|
|
'jquery.i18n',
|
2012-06-18 20:30:14 +00:00
|
|
|
),
|
2012-06-11 06:54:41 +00:00
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2013-08-30 00:55:31 +00:00
|
|
|
'ext.visualEditor.data' => $wgVisualEditorResourceTemplate + array(
|
2013-10-11 18:42:46 +00:00
|
|
|
'class' => 'VisualEditorDataModule',
|
2012-06-21 20:39:27 +00:00
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2012-06-11 06:54:41 +00:00
|
|
|
'ext.visualEditor.core' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
// ve
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ve.Range.js',
|
|
|
|
'lib/ve/src/ve.Node.js',
|
|
|
|
'lib/ve/src/ve.BranchNode.js',
|
|
|
|
'lib/ve/src/ve.LeafNode.js',
|
|
|
|
'lib/ve/src/ve.Document.js',
|
|
|
|
'lib/ve/src/ve.EventSequencer.js',
|
2012-05-21 19:37:30 +00:00
|
|
|
|
2012-02-06 23:50:56 +00:00
|
|
|
// dm
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.Model.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.ModelRegistry.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.NodeFactory.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.AnnotationFactory.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.AnnotationSet.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.MetaItemFactory.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.Node.js',
|
2014-10-29 18:14:54 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.ClassAttributeNode.js',
|
2014-09-17 00:33:39 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.FocusableNode.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.Scalable.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.ResizableNode.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.BranchNode.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.LeafNode.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.Annotation.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.InternalList.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.MetaItem.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.MetaList.js',
|
2014-10-29 18:45:29 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.TableMatrix.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.TransactionProcessor.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.Transaction.js',
|
2014-09-30 16:34:33 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.Selection.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.LinearSelection.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.NullSelection.js',
|
2014-10-29 18:45:29 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.TableSelection.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/dm/ve.dm.Surface.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.SurfaceFragment.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.DataString.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.Document.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.DocumentSlice.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.LinearData.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.DocumentSynchronizer.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.IndexValueStore.js',
|
|
|
|
'lib/ve/src/dm/ve.dm.Converter.js',
|
|
|
|
|
|
|
|
'lib/ve/src/dm/lineardata/ve.dm.FlatLinearData.js',
|
|
|
|
'lib/ve/src/dm/lineardata/ve.dm.ElementLinearData.js',
|
|
|
|
'lib/ve/src/dm/lineardata/ve.dm.MetaLinearData.js',
|
|
|
|
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.GeneratedContentNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.AlienNode.js',
|
2014-11-26 01:53:01 +00:00
|
|
|
'lib/ve/src/dm/nodes/ve.dm.BlockquoteNode.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/dm/nodes/ve.dm.BreakNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.CenterNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.CommentNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.DefinitionListItemNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.DefinitionListNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.DivNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.DocumentNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.HeadingNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.InternalItemNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.InternalListNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.ListItemNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.ListNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.ParagraphNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.PreformattedNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.TableCaptionNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.TableCellNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.TableNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.TableRowNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.TableSectionNode.js',
|
|
|
|
'lib/ve/src/dm/nodes/ve.dm.TextNode.js',
|
2014-09-02 21:40:59 +00:00
|
|
|
'lib/ve/src/dm/nodes/ve.dm.ImageNode.js',
|
2014-08-22 18:46:02 +00:00
|
|
|
'lib/ve/src/dm/nodes/ve.dm.BlockImageNode.js',
|
2014-09-02 21:40:59 +00:00
|
|
|
'lib/ve/src/dm/nodes/ve.dm.BlockImageCaptionNode.js',
|
2014-08-22 18:46:02 +00:00
|
|
|
'lib/ve/src/dm/nodes/ve.dm.InlineImageNode.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.LinkAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.TextStyleAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.AbbreviationAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.BigAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.BoldAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.CodeSampleAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.CodeAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.DatetimeAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.DefinitionAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.HighlightAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.ItalicAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.QuotationAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.SmallAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.SpanAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.StrikethroughAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.SubscriptAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.SuperscriptAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.UnderlineAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.UserInputAnnotation.js',
|
|
|
|
'lib/ve/src/dm/annotations/ve.dm.VariableAnnotation.js',
|
|
|
|
|
|
|
|
'lib/ve/src/dm/metaitems/ve.dm.AlienMetaItem.js',
|
|
|
|
'lib/ve/src/dm/metaitems/ve.dm.CommentMetaItem.js',
|
2013-06-18 21:55:06 +00:00
|
|
|
|
2012-03-29 21:05:25 +00:00
|
|
|
// ce
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ce/ve.ce.js',
|
2014-11-25 02:02:52 +00:00
|
|
|
'lib/ve/src/ce/ve.ce.RangeState.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ce/ve.ce.AnnotationFactory.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.NodeFactory.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.Document.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.View.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.Annotation.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.Node.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.BranchNode.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.ContentBranchNode.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.LeafNode.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.FocusableNode.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.ResizableNode.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.Surface.js',
|
|
|
|
'lib/ve/src/ce/ve.ce.SurfaceObserver.js',
|
|
|
|
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.GeneratedContentNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.AlienNode.js',
|
2014-11-26 01:53:01 +00:00
|
|
|
'lib/ve/src/ce/nodes/ve.ce.BlockquoteNode.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ce/nodes/ve.ce.BreakNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.CenterNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.CommentNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.DefinitionListItemNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.DefinitionListNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.DivNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.DocumentNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.HeadingNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.InternalItemNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.InternalListNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.ListItemNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.ListNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.ParagraphNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.PreformattedNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.TableCaptionNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.TableCellNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.TableNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.TableRowNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.TableSectionNode.js',
|
|
|
|
'lib/ve/src/ce/nodes/ve.ce.TextNode.js',
|
2014-09-02 21:40:59 +00:00
|
|
|
'lib/ve/src/ce/nodes/ve.ce.ImageNode.js',
|
2014-08-22 18:46:02 +00:00
|
|
|
'lib/ve/src/ce/nodes/ve.ce.BlockImageNode.js',
|
2014-09-02 21:40:59 +00:00
|
|
|
'lib/ve/src/ce/nodes/ve.ce.BlockImageCaptionNode.js',
|
2014-08-22 18:46:02 +00:00
|
|
|
'lib/ve/src/ce/nodes/ve.ce.InlineImageNode.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.LinkAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.TextStyleAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.AbbreviationAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.BigAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.BoldAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.CodeAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.CodeSampleAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.DatetimeAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.DefinitionAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.HighlightAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.ItalicAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.QuotationAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.SmallAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.SpanAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.StrikethroughAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.SubscriptAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.SuperscriptAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.UnderlineAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.UserInputAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.VariableAnnotation.js',
|
Great Annotation Refactor of 2013
This changes the annotation API to be the same as the node API, sans
a few boolean flags that don't apply. The APIs were different, but
there was really no good reason why, so this makes things simpler for
API users. It also means we'll be able to factor a bunch of things out
because they're now duplicated between nodes, meta items and annotations.
Linear model annotations are now objects with 'type' and 'attributes'
properties (rather than 'name' and 'data'), for consistency with elements.
They now also contain html/0/* attributes for HTML attribute preservation,
which obsoletes the htmlTagName and htmlAttributes properties.
dm.Annotation subclasses take a reference to such an object and implement
conversion using .static.toDataElement and .static.toDomElements just
like nodes do. The custom .getHash() functions are no longer necessary
because of the way HTML attribute preservation was reimplemented.
CE rendering has been moved out of dm.Annotation (it never made sense to
have CE rendering functions in DM classes, this was bothering me) and into
separate ce.Annotation subclasses. These are very similar to CE nodes in
that they have a this.$ generated based on something in the DM; the main
difference is that nodes listen to events and update themselves, whereas
annotations are static and are simply destroyed and rebuilt when they
change. This change also adds whitelisted HTML attribute rendering for
annotations, as well as class="ve-ce-FooAnnotation" attributes.
Now that annotation classes produce real DOM nodes rather than weird
objects describing HTML tags, we can't generate HTML as a string in
ce.ContentBranchNode anymore. getRenderedContents() has been rewritten
to be much more similar to the way the converter renders annotations;
in fact, significant parts of it were copied from the converter, so that
should be factored out in the future. This change actually fixes an
annotation rendering discrepancy between ce.ContentBranchNode and
dm.Converter; see the diff of ve.ce.ContentBranchNode.test.js.
ve.ce.MWEntityNode.js:
* Remove stray property
ve.dm.MWExternalLinkAnnotation.js:
* Store 'rel' attribute
ve.dm.TextStyleAnnotation.js:
* Put all the conversion logic in the abstract base class
ve.dm.Converter.js:
* Also feed annotations through getDomElementsFromDataElement() and
createDataElement()
ve.dm.Node.js:
* Fix undocumented property
ve.ce.ContentBranchNode.test.js:
* Add descriptive messages for each test case
* Compare DOM trees, not HTML strings
* Compare without all the class="ve-ce-WhateverAnnotation" clutter
ve.ui.LinkInspector.js:
* Replace direct .getHash() calls (evil!) with ve.getHash()
Bug: 46464
Bug: 44808
Change-Id: I31991488579b8cce6d98ed8b29b486ba5ec38cdc
2013-04-02 17:23:33 +00:00
|
|
|
|
2012-02-06 23:50:56 +00:00
|
|
|
// ui
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.js',
|
|
|
|
|
|
|
|
'lib/ve/src/ui/ve.ui.Overlay.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.Surface.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.Context.js',
|
2014-10-29 18:45:29 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.TableContext.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.Tool.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.Toolbar.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.TargetToolbar.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.ToolFactory.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.Command.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.CommandRegistry.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.Trigger.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.TriggerRegistry.js',
|
2014-11-25 22:24:16 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.Sequence.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.SequenceRegistry.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.Action.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.ActionFactory.js',
|
2014-11-11 16:57:17 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.FileDropHandler.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.FileDropHandlerFactory.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.WindowManager.js',
|
|
|
|
|
|
|
|
'lib/ve/src/ui/actions/ve.ui.AnnotationAction.js',
|
|
|
|
'lib/ve/src/ui/actions/ve.ui.ContentAction.js',
|
|
|
|
'lib/ve/src/ui/actions/ve.ui.FormatAction.js',
|
|
|
|
'lib/ve/src/ui/actions/ve.ui.HistoryAction.js',
|
|
|
|
'lib/ve/src/ui/actions/ve.ui.IndentationAction.js',
|
|
|
|
'lib/ve/src/ui/actions/ve.ui.ListAction.js',
|
2014-10-29 18:45:29 +00:00
|
|
|
'lib/ve/src/ui/actions/ve.ui.TableAction.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/actions/ve.ui.WindowAction.js',
|
|
|
|
|
2014-11-11 16:45:02 +00:00
|
|
|
'lib/ve/src/ui/commands/ve.ui.ClearAnnotationCommand.js',
|
|
|
|
'lib/ve/src/ui/commands/ve.ui.HistoryCommand.js',
|
|
|
|
'lib/ve/src/ui/commands/ve.ui.IndentationCommand.js',
|
|
|
|
'lib/ve/src/ui/commands/ve.ui.MergeCellsCommand.js',
|
|
|
|
'lib/ve/src/ui/commands/ve.ui.TableCaptionCommand.js',
|
|
|
|
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/dialogs/ve.ui.FragmentDialog.js',
|
|
|
|
'lib/ve/src/ui/dialogs/ve.ui.NodeDialog.js',
|
2014-11-25 11:53:55 +00:00
|
|
|
'lib/ve/src/ui/dialogs/ve.ui.ProgressDialog.js',
|
|
|
|
'lib/ve/src/ui/dialogs/ve.ui.CommandHelpDialog.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
|
2014-11-25 21:49:48 +00:00
|
|
|
// FIXME disabled because papaparse is broken (T75896)
|
|
|
|
//'lib/ve/src/ui/filedrophandlers/ve.ui.DSVFileDropHandler.js',
|
2014-11-11 16:57:17 +00:00
|
|
|
'lib/ve/src/ui/filedrophandlers/ve.ui.PlainTextFileDropHandler.js',
|
2014-11-24 11:27:25 +00:00
|
|
|
'lib/ve/src/ui/filedrophandlers/ve.ui.HTMLFileDropHandler.js',
|
2014-11-11 16:57:17 +00:00
|
|
|
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/widgets/ve.ui.SurfaceWidget.js',
|
|
|
|
'lib/ve/src/ui/widgets/ve.ui.LinkTargetInputWidget.js',
|
2014-11-20 01:02:44 +00:00
|
|
|
'lib/ve/src/ui/widgets/ve.ui.ContextSelectWidget.js',
|
|
|
|
'lib/ve/src/ui/widgets/ve.ui.ContextOptionWidget.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/widgets/ve.ui.DimensionsWidget.js',
|
|
|
|
'lib/ve/src/ui/widgets/ve.ui.MediaSizeWidget.js',
|
|
|
|
'lib/ve/src/ui/widgets/ve.ui.WhitespacePreservingTextInputWidget.js',
|
|
|
|
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.AnnotationTool.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.ClearAnnotationTool.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.DialogTool.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.FormatTool.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.HistoryTool.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.IndentationTool.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.InspectorTool.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.ListTool.js',
|
2014-10-29 18:45:29 +00:00
|
|
|
'lib/ve/src/ui/tools/ve.ui.TableTool.js',
|
2014-08-14 21:16:47 +00:00
|
|
|
|
|
|
|
'lib/ve/src/ui/inspectors/ve.ui.FragmentInspector.js',
|
|
|
|
'lib/ve/src/ui/inspectors/ve.ui.AnnotationInspector.js',
|
|
|
|
'lib/ve/src/ui/inspectors/ve.ui.NodeInspector.js',
|
|
|
|
'lib/ve/src/ui/inspectors/ve.ui.CommentInspector.js',
|
|
|
|
'lib/ve/src/ui/inspectors/ve.ui.LinkInspector.js',
|
|
|
|
|
|
|
|
'lib/ve/src/ui/inspectors/ve.ui.SpecialCharacterInspector.js',
|
2013-12-14 21:06:19 +00:00
|
|
|
),
|
2014-04-01 20:17:58 +00:00
|
|
|
'debugScripts' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.DebugBar.js',
|
2014-08-29 16:39:13 +00:00
|
|
|
'lib/ve/src/ve.Filibuster.js',
|
2014-04-01 20:17:58 +00:00
|
|
|
),
|
2013-12-14 21:06:19 +00:00
|
|
|
'styles' => array(
|
|
|
|
// ce
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.CommentNode.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.FocusableNode.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.AlienNode.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.BranchNode.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.DocumentNode.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.GeneratedContentNode.css',
|
|
|
|
'lib/ve/src/ce/styles/annotations/ve.ce.LanguageAnnotation.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.ResizableNode.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.TableCellNode.css',
|
|
|
|
'lib/ve/src/ce/styles/nodes/ve.ce.TableNode.css',
|
|
|
|
'lib/ve/src/ce/styles/ve.ce.Surface.css',
|
2014-03-21 23:33:37 +00:00
|
|
|
|
2013-12-14 21:06:19 +00:00
|
|
|
// ui
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/dialogs/ve.ui.CommandHelpDialog.css',
|
2014-11-25 11:53:55 +00:00
|
|
|
'lib/ve/src/ui/styles/dialogs/ve.ui.ProgressDialog.css',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/tools/ve.ui.FormatTool.css',
|
2014-11-20 01:02:44 +00:00
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.ContextOptionWidget.css',
|
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.ContextSelectWidget.css',
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.DimensionsWidget.css',
|
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.MediaSizeWidget.css',
|
|
|
|
'lib/ve/src/ui/styles/inspectors/ve.ui.CommentInspector.css',
|
|
|
|
'lib/ve/src/ui/styles/inspectors/ve.ui.FragmentInspector.css',
|
|
|
|
'lib/ve/src/ui/styles/inspectors/ve.ui.LinkInspector.css',
|
|
|
|
'lib/ve/src/ui/styles/inspectors/ve.ui.SpecialCharacterInspector.css',
|
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.SurfaceWidget.css',
|
|
|
|
'lib/ve/src/ui/styles/ve.ui.Overlay.css',
|
|
|
|
'lib/ve/src/ui/styles/ve.ui.Surface.css',
|
|
|
|
'lib/ve/src/ui/styles/ve.ui.Toolbar.css',
|
2014-10-29 18:45:29 +00:00
|
|
|
'lib/ve/src/ui/styles/ve.ui.TableContext.css',
|
2014-04-01 20:17:58 +00:00
|
|
|
|
|
|
|
// TODO: add debugStyles to ResourceLoader
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/ve.ui.DebugBar.css',
|
2013-12-14 21:06:19 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'unicodejs',
|
2014-11-25 21:49:48 +00:00
|
|
|
// FIXME papaparse is broken (T75896)
|
|
|
|
//'papaparse',
|
2014-06-12 11:48:44 +00:00
|
|
|
'jquery.uls.data',
|
2013-12-14 21:06:19 +00:00
|
|
|
'ext.visualEditor.base',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'visualeditor',
|
|
|
|
'visualeditor-aliennode-tooltip',
|
|
|
|
'visualeditor-annotationbutton-bold-tooltip',
|
|
|
|
'visualeditor-annotationbutton-code-tooltip',
|
|
|
|
'visualeditor-annotationbutton-italic-tooltip',
|
|
|
|
'visualeditor-annotationbutton-link-tooltip',
|
|
|
|
'visualeditor-annotationbutton-strikethrough-tooltip',
|
|
|
|
'visualeditor-annotationbutton-subscript-tooltip',
|
|
|
|
'visualeditor-annotationbutton-superscript-tooltip',
|
|
|
|
'visualeditor-annotationbutton-underline-tooltip',
|
|
|
|
'visualeditor-clearbutton-tooltip',
|
2014-01-13 14:56:49 +00:00
|
|
|
'visualeditor-clipboard-copy',
|
|
|
|
'visualeditor-clipboard-cut',
|
|
|
|
'visualeditor-clipboard-paste',
|
|
|
|
'visualeditor-clipboard-paste-special',
|
2014-07-18 09:30:32 +00:00
|
|
|
'visualeditor-commentinspector-edit',
|
|
|
|
'visualeditor-commentinspector-title',
|
|
|
|
'visualeditor-commentinspector-tooltip',
|
2014-11-19 23:46:52 +00:00
|
|
|
'visualeditor-content-select-all',
|
2014-09-08 22:20:25 +00:00
|
|
|
'visualeditor-contextitemwidget-label-secondary',
|
2013-12-14 21:06:19 +00:00
|
|
|
'visualeditor-dialog-action-apply',
|
|
|
|
'visualeditor-dialog-action-cancel',
|
2014-07-14 21:32:49 +00:00
|
|
|
'visualeditor-dialog-action-done',
|
2013-12-14 21:06:19 +00:00
|
|
|
'visualeditor-dialog-action-goback',
|
2014-08-20 21:09:26 +00:00
|
|
|
'visualeditor-dialog-action-insert',
|
2014-01-13 14:56:49 +00:00
|
|
|
'visualeditor-dialog-command-help-title',
|
2014-04-24 00:22:45 +00:00
|
|
|
'visualeditor-dialog-error',
|
2014-05-28 22:05:17 +00:00
|
|
|
'visualeditor-dialog-error-dismiss',
|
2014-07-02 19:23:25 +00:00
|
|
|
'visualeditor-dialog-media-goback',
|
2014-04-10 00:26:48 +00:00
|
|
|
'visualeditor-dialog-media-size-originalsize-error',
|
|
|
|
'visualeditor-dimensionswidget-px',
|
|
|
|
'visualeditor-dimensionswidget-times',
|
2014-11-26 02:57:26 +00:00
|
|
|
'visualeditor-formatdropdown-format-blockquote',
|
2014-01-13 14:56:49 +00:00
|
|
|
'visualeditor-formatdropdown-format-heading-label',
|
2013-12-14 21:06:19 +00:00
|
|
|
'visualeditor-formatdropdown-format-heading1',
|
|
|
|
'visualeditor-formatdropdown-format-heading2',
|
|
|
|
'visualeditor-formatdropdown-format-heading3',
|
|
|
|
'visualeditor-formatdropdown-format-heading4',
|
|
|
|
'visualeditor-formatdropdown-format-heading5',
|
|
|
|
'visualeditor-formatdropdown-format-heading6',
|
|
|
|
'visualeditor-formatdropdown-format-paragraph',
|
|
|
|
'visualeditor-formatdropdown-format-preformatted',
|
|
|
|
'visualeditor-formatdropdown-title',
|
|
|
|
'visualeditor-help-tool',
|
|
|
|
'visualeditor-historybutton-redo-tooltip',
|
|
|
|
'visualeditor-historybutton-undo-tooltip',
|
|
|
|
'visualeditor-indentationbutton-indent-tooltip',
|
|
|
|
'visualeditor-indentationbutton-outdent-tooltip',
|
|
|
|
'visualeditor-inspector-close-tooltip',
|
|
|
|
'visualeditor-inspector-remove-tooltip',
|
2014-07-14 21:32:49 +00:00
|
|
|
'visualeditor-linkinspector-open',
|
2013-12-14 21:06:19 +00:00
|
|
|
'visualeditor-linkinspector-title',
|
|
|
|
'visualeditor-listbutton-bullet-tooltip',
|
|
|
|
'visualeditor-listbutton-number-tooltip',
|
2013-12-21 22:37:54 +00:00
|
|
|
'visualeditor-mediasizewidget-button-originaldimensions',
|
2014-04-10 00:26:48 +00:00
|
|
|
'visualeditor-mediasizewidget-label-custom',
|
2013-12-21 22:37:54 +00:00
|
|
|
'visualeditor-mediasizewidget-label-defaulterror',
|
2014-04-10 00:26:48 +00:00
|
|
|
'visualeditor-mediasizewidget-label-scale',
|
|
|
|
'visualeditor-mediasizewidget-label-scale-percent',
|
|
|
|
'visualeditor-mediasizewidget-sizeoptions-custom',
|
|
|
|
'visualeditor-mediasizewidget-sizeoptions-default',
|
|
|
|
'visualeditor-mediasizewidget-sizeoptions-scale',
|
2014-01-13 14:56:49 +00:00
|
|
|
'visualeditor-shortcuts-clipboard',
|
|
|
|
'visualeditor-shortcuts-formatting',
|
|
|
|
'visualeditor-shortcuts-history',
|
|
|
|
'visualeditor-shortcuts-other',
|
|
|
|
'visualeditor-shortcuts-text-style',
|
2013-12-14 21:06:19 +00:00
|
|
|
'visualeditor-specialcharacter-button-tooltip',
|
|
|
|
'visualeditor-specialcharacterinspector-title',
|
|
|
|
'visualeditor-specialcharinspector-characterlist-insert',
|
2014-10-30 20:11:27 +00:00
|
|
|
'visualeditor-table-caption',
|
2014-10-29 18:45:29 +00:00
|
|
|
'visualeditor-table-delete-col',
|
|
|
|
'visualeditor-table-delete-row',
|
|
|
|
'visualeditor-table-delete-table',
|
|
|
|
'visualeditor-table-format-data',
|
|
|
|
'visualeditor-table-format-header',
|
|
|
|
'visualeditor-table-insert-col-after',
|
|
|
|
'visualeditor-table-insert-col-before',
|
|
|
|
'visualeditor-table-insert-row-after',
|
|
|
|
'visualeditor-table-insert-row-before',
|
|
|
|
'visualeditor-table-insert-table',
|
|
|
|
'visualeditor-table-merge-cells',
|
2014-10-23 16:17:44 +00:00
|
|
|
'visualeditor-toolbar-format-tooltip',
|
|
|
|
'visualeditor-toolbar-history',
|
|
|
|
'visualeditor-toolbar-insert',
|
|
|
|
'visualeditor-toolbar-paragraph-format',
|
|
|
|
'visualeditor-toolbar-structure',
|
|
|
|
'visualeditor-toolbar-style-tooltip',
|
2014-10-29 18:45:29 +00:00
|
|
|
'visualeditor-toolbar-table',
|
2014-10-23 16:17:44 +00:00
|
|
|
'visualeditor-toolbar-text-style',
|
2013-12-14 21:06:19 +00:00
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2014-03-14 19:52:40 +00:00
|
|
|
'ext.visualEditor.core.desktop' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.DesktopSurface.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.DesktopContext.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.DesktopInspectorManager.js',
|
2014-03-14 19:52:40 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/ve.ui.DesktopContext.css',
|
2014-03-14 19:52:40 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.core',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.core.mobile' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/ve.ui.MobileSurface.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.MobileContext.js',
|
|
|
|
'lib/ve/src/ui/ve.ui.MobileWindowManager.js',
|
2014-11-20 19:41:18 +00:00
|
|
|
'lib/ve/src/ui/widgets/ve.ui.MobileContextOptionWidget.js',
|
2014-03-14 19:52:40 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/ve.ui.MobileSurface.css',
|
2014-11-20 19:41:18 +00:00
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.MobileContextOptionWidget.css',
|
2014-03-14 19:52:40 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.core',
|
|
|
|
),
|
|
|
|
'targets' => array( 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2013-12-14 21:06:19 +00:00
|
|
|
'ext.visualEditor.mwcore' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
// dm
|
2014-03-03 19:24:19 +00:00
|
|
|
'modules/ve-mw/dm/ve.dm.MW.js',
|
|
|
|
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWEntityNode.js',
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWExtensionNode.js',
|
2014-10-27 14:26:47 +00:00
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWTableNode.js',
|
2013-12-19 20:28:07 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/dm/annotations/ve.dm.MWNowikiAnnotation.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWAlienMetaItem.js',
|
|
|
|
|
2013-12-14 21:06:19 +00:00
|
|
|
// ce
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWEntityNode.js',
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWExtensionNode.js',
|
2014-10-27 14:26:47 +00:00
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWTableNode.js',
|
2013-12-19 20:28:07 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ce/annotations/ve.ce.MWNowikiAnnotation.js',
|
2013-12-14 21:06:19 +00:00
|
|
|
|
|
|
|
// ui
|
2013-12-20 23:25:24 +00:00
|
|
|
'modules/ve-mw/ui/ve.ui.MWCommandRegistry.js',
|
2014-11-23 18:04:00 +00:00
|
|
|
'modules/ve-mw/ui/ve.ui.MWSequenceRegistry.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ui/commands/ve.ui.MWWikitextWarningCommand.js',
|
2013-12-19 20:28:07 +00:00
|
|
|
|
2014-10-15 23:56:44 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWSurfaceWidget.js',
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWTitleInputWidget.js',
|
2014-01-09 01:32:13 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWTocItemWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWTocWidget.js',
|
2013-12-19 20:28:07 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js',
|
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWBetaWelcomeDialog.js',
|
2014-02-13 13:29:29 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWCommandHelpDialog.js',
|
2014-07-15 22:59:09 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWCancelConfirmDialog.js',
|
2014-06-25 20:13:11 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWWikitextSwitchConfirmDialog.js',
|
2013-12-19 20:28:07 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWEditModeTool.js',
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ui/inspectors/ve.ui.MWExtensionInspector.js',
|
2014-04-17 02:16:24 +00:00
|
|
|
'modules/ve-mw/ui/inspectors/ve.ui.MWLiveExtensionInspector.js',
|
2014-10-22 02:44:27 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/actions/ve.ui.MWLinkAction.js',
|
2011-11-28 20:28:28 +00:00
|
|
|
),
|
2011-11-30 20:45:24 +00:00
|
|
|
'styles' => array(
|
2012-02-06 23:50:56 +00:00
|
|
|
// ui
|
2014-04-18 20:27:48 +00:00
|
|
|
'modules/ve-mw/ui/styles/inspectors/ve.ui.MWExtensionInspector.css',
|
2014-11-25 16:21:03 +00:00
|
|
|
'modules/ve-mw/ui/styles/dialogs/ve.ui.MWCommandHelpDialog.css',
|
2014-04-18 20:27:48 +00:00
|
|
|
'modules/ve-mw/ui/styles/dialogs/ve.ui.MWSaveDialog.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWTitleInputWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWTocWidget.css',
|
2011-11-30 20:45:24 +00:00
|
|
|
),
|
2011-11-28 20:28:28 +00:00
|
|
|
'dependencies' => array(
|
2013-12-14 21:06:19 +00:00
|
|
|
'ext.visualEditor.core',
|
2012-06-25 23:25:09 +00:00
|
|
|
'mediawiki.Title',
|
2013-10-07 10:01:43 +00:00
|
|
|
'mediawiki.action.history.diff',
|
2013-11-20 07:10:27 +00:00
|
|
|
'mediawiki.user',
|
2013-12-14 21:55:09 +00:00
|
|
|
'mediawiki.util',
|
2014-04-19 09:10:56 +00:00
|
|
|
'mediawiki.jqueryMsg',
|
2012-11-06 18:56:03 +00:00
|
|
|
'jquery.autoEllipsis',
|
2013-10-11 18:42:46 +00:00
|
|
|
'jquery.byteLimit',
|
2014-05-21 19:19:07 +00:00
|
|
|
'mediawiki.skinning.content.parsoid',
|
2011-11-28 20:28:28 +00:00
|
|
|
),
|
2012-02-07 16:37:08 +00:00
|
|
|
'messages' => array(
|
2013-06-12 19:10:22 +00:00
|
|
|
'visualeditor-beta-label',
|
|
|
|
'visualeditor-beta-warning',
|
|
|
|
'visualeditor-browserwarning',
|
2013-09-05 22:33:17 +00:00
|
|
|
'visualeditor-dialog-beta-welcome-action-continue',
|
|
|
|
'visualeditor-dialog-beta-welcome-content',
|
|
|
|
'visualeditor-dialog-beta-welcome-title',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-diff-nochanges',
|
|
|
|
'visualeditor-differror',
|
|
|
|
'visualeditor-editconflict',
|
|
|
|
'visualeditor-editnotices-tool',
|
2014-02-26 23:51:54 +00:00
|
|
|
'visualeditor-editnotices-tooltip',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-editsummary',
|
|
|
|
'visualeditor-editsummary-bytes-remaining',
|
|
|
|
'visualeditor-feedback-tool',
|
|
|
|
'visualeditor-help-label',
|
|
|
|
'visualeditor-help-link',
|
|
|
|
'visualeditor-help-title',
|
|
|
|
'visualeditor-mweditmodesource-title',
|
2014-07-14 21:32:49 +00:00
|
|
|
'visualeditor-mweditmodesource-tool',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-mweditmodesource-warning',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-mweditmodesource-warning-cancel',
|
2014-05-17 14:34:32 +00:00
|
|
|
'visualeditor-mweditmodesource-warning-switch',
|
2014-06-25 20:13:11 +00:00
|
|
|
'visualeditor-mweditmodesource-warning-switch-discard',
|
2014-02-28 19:26:47 +00:00
|
|
|
'visualeditor-pagemenu-tooltip',
|
2014-03-19 00:26:54 +00:00
|
|
|
'visualeditor-pagetranslationwarning',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-savedialog-error-badtoken',
|
|
|
|
'visualeditor-savedialog-label-create',
|
|
|
|
'visualeditor-savedialog-label-error',
|
|
|
|
'visualeditor-savedialog-label-report',
|
|
|
|
'visualeditor-savedialog-label-resolve-conflict',
|
|
|
|
'visualeditor-savedialog-label-restore',
|
2014-09-11 18:52:21 +00:00
|
|
|
'visualeditor-savedialog-label-resume-editing',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-savedialog-label-review',
|
|
|
|
'visualeditor-savedialog-label-review-good',
|
|
|
|
'visualeditor-savedialog-label-save',
|
|
|
|
'visualeditor-savedialog-label-warning',
|
|
|
|
'visualeditor-savedialog-title-conflict',
|
|
|
|
'visualeditor-savedialog-title-nochanges',
|
|
|
|
'visualeditor-savedialog-title-review',
|
|
|
|
'visualeditor-savedialog-title-save',
|
|
|
|
'visualeditor-savedialog-warning-dirty',
|
|
|
|
'visualeditor-saveerror',
|
|
|
|
'visualeditor-serializeerror',
|
2014-10-30 00:36:02 +00:00
|
|
|
'visualeditor-recreate',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-toolbar-cite-label',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-toolbar-savedialog',
|
2014-10-23 16:17:44 +00:00
|
|
|
'visualeditor-version-label',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-viewpage-savewarning',
|
2014-04-29 14:04:19 +00:00
|
|
|
'visualeditor-viewpage-savewarning-discard',
|
|
|
|
'visualeditor-viewpage-savewarning-keep',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-viewpage-savewarning-title',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-wikitext-warning-title',
|
|
|
|
'visualeditor-window-title',
|
2014-09-08 18:47:56 +00:00
|
|
|
|
|
|
|
// Used by the TOC widget (currently experimental)
|
2014-01-09 01:32:13 +00:00
|
|
|
'toc',
|
2014-04-25 23:26:52 +00:00
|
|
|
'showtoc',
|
|
|
|
'hidetoc',
|
2014-04-23 22:24:46 +00:00
|
|
|
|
|
|
|
'captcha-edit',
|
2014-02-26 00:50:20 +00:00
|
|
|
'captcha-label',
|
|
|
|
'colon-separator',
|
2014-04-24 19:17:21 +00:00
|
|
|
// Only used if FancyCaptcha is installed and triggered on save
|
|
|
|
'fancycaptcha-edit',
|
|
|
|
// Only used if QuestyCaptcha is installed and triggered on save
|
|
|
|
'questycaptcha-edit'
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.mwformatting' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js',
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWPreformattedNode.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWHeadingNode.js',
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWPreformattedNode.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWFormatTool.js',
|
|
|
|
),
|
2014-04-30 23:27:42 +00:00
|
|
|
'skinStyles' => array(
|
|
|
|
'vector' => array(
|
|
|
|
'modules/ve-mw/ui/themes/vector/ve.ui.MWFormatTool.css',
|
|
|
|
),
|
|
|
|
),
|
2014-02-26 00:50:20 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mwcore',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'visualeditor-formatdropdown-format-mw-heading1',
|
|
|
|
'visualeditor-formatdropdown-format-mw-heading2',
|
|
|
|
'visualeditor-formatdropdown-format-mw-heading3',
|
|
|
|
'visualeditor-formatdropdown-format-mw-heading4',
|
|
|
|
'visualeditor-formatdropdown-format-mw-heading5',
|
|
|
|
'visualeditor-formatdropdown-format-mw-heading6',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2014-06-06 21:48:26 +00:00
|
|
|
'ext.visualEditor.mwimage.core' => $wgVisualEditorResourceTemplate + array(
|
2014-02-26 00:50:20 +00:00
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWImageNode.js',
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWInlineImageNode.js',
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWBlockImageNode.js',
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWImageCaptionNode.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ce/ve.ce.MWResizableNode.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWImageNode.js',
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWInlineImageNode.js',
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js',
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWImageCaptionNode.js',
|
2014-06-06 21:48:26 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
|
|
|
'modules/ve-mw/ce/styles/nodes/ve.ce.MWBlockImageNode.css',
|
|
|
|
'modules/ve-mw/ce/styles/nodes/ve.ce.MWInlineImageNode.css',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mwcore',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.mwimage' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWImageModel.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWMediaResultWidget.js',
|
|
|
|
|
2014-06-19 15:44:05 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js',
|
2014-02-27 15:17:00 +00:00
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWMediaDialogTool.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
2014-04-18 20:27:48 +00:00
|
|
|
'modules/ve-mw/ui/styles/dialogs/ve.ui.MWMediaDialog.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWMediaResultWidget.css',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
2014-06-06 21:48:26 +00:00
|
|
|
'ext.visualEditor.mwimage.core',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
2013-12-28 10:29:35 +00:00
|
|
|
'visualeditor-dialog-media-alttext-section',
|
2014-06-19 15:44:05 +00:00
|
|
|
'visualeditor-dialog-media-change-image',
|
2013-06-19 15:56:00 +00:00
|
|
|
'visualeditor-dialog-media-content-section',
|
2014-05-13 06:27:18 +00:00
|
|
|
'visualeditor-dialog-media-noresults',
|
2013-12-21 22:37:54 +00:00
|
|
|
'visualeditor-dialog-media-page-advanced',
|
|
|
|
'visualeditor-dialog-media-page-general',
|
2013-12-29 03:49:06 +00:00
|
|
|
'visualeditor-dialog-media-position-center',
|
2014-01-21 18:05:50 +00:00
|
|
|
'visualeditor-dialog-media-position-checkbox',
|
2013-12-29 03:49:06 +00:00
|
|
|
'visualeditor-dialog-media-position-left',
|
|
|
|
'visualeditor-dialog-media-position-none',
|
|
|
|
'visualeditor-dialog-media-position-right',
|
|
|
|
'visualeditor-dialog-media-position-section',
|
2013-12-21 22:37:54 +00:00
|
|
|
'visualeditor-dialog-media-size-section',
|
2013-06-12 19:39:35 +00:00
|
|
|
'visualeditor-dialog-media-title',
|
2014-01-21 18:05:50 +00:00
|
|
|
'visualeditor-dialog-media-type-border',
|
|
|
|
'visualeditor-dialog-media-type-frame',
|
|
|
|
'visualeditor-dialog-media-type-frameless',
|
2014-02-27 17:39:19 +00:00
|
|
|
'visualeditor-dialog-media-type-none',
|
2014-01-21 18:05:50 +00:00
|
|
|
'visualeditor-dialog-media-type-section',
|
|
|
|
'visualeditor-dialog-media-type-thumb',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-dialogbutton-media-tooltip',
|
|
|
|
'visualeditor-media-input-placeholder',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.mwlink' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWNumberedExternalLinkNode.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/dm/annotations/ve.dm.MWExternalLinkAnnotation.js',
|
|
|
|
'modules/ve-mw/dm/annotations/ve.dm.MWInternalLinkAnnotation.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWNumberedExternalLinkNode.js',
|
|
|
|
|
2014-02-27 01:42:00 +00:00
|
|
|
'modules/ve-mw/ce/annotations/ve.ce.MWExternalLinkAnnotation.js',
|
|
|
|
'modules/ve-mw/ce/annotations/ve.ce.MWInternalLinkAnnotation.js',
|
|
|
|
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWLinkTargetInputWidget.js',
|
2014-11-20 01:02:44 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWLinkMenuOptionWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWInternalLinkMenuOptionWidget.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
|
2014-05-31 04:47:08 +00:00
|
|
|
'modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js',
|
|
|
|
'modules/ve-mw/ui/inspectors/ve.ui.MWLinkNodeInspector.js',
|
2014-02-27 15:17:00 +00:00
|
|
|
|
2014-10-22 02:44:27 +00:00
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWLinkInspectorTool.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
2014-07-29 19:07:30 +00:00
|
|
|
'styles' => array(
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWLinkTargetInputWidget.css'
|
|
|
|
),
|
2014-03-28 19:19:02 +00:00
|
|
|
'skinStyles' => array(
|
|
|
|
'default' => array(
|
|
|
|
'modules/ve-mw/ui/themes/apex/ve.ui.MWLinkTargetInputWidget.css'
|
|
|
|
),
|
|
|
|
'minerva' => array(),
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mwcore',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
2014-06-02 21:01:01 +00:00
|
|
|
'visualeditor-annotationbutton-linknode-tooltip',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-linkinspector-illegal-title',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-linkinspector-suggest-disambig-page',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-linkinspector-suggest-external-link',
|
|
|
|
'visualeditor-linkinspector-suggest-matching-page',
|
|
|
|
'visualeditor-linkinspector-suggest-new-page',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-linkinspector-suggest-redirect-page',
|
2014-06-02 21:01:01 +00:00
|
|
|
'visualeditor-linknodeinspector-add-label',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-linknodeinspector-title',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.mwmeta' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWCategoryMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWDefaultSortMetaItem.js',
|
2014-04-22 21:07:13 +00:00
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWDisplayTitleMetaItem.js',
|
2013-11-15 22:10:42 +00:00
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWHiddenCategoryMetaItem.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWIndexDisableMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWIndexForceMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWLanguageMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWNewSectionEditDisableMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWNewSectionEditForceMetaItem.js',
|
2013-11-15 22:10:42 +00:00
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWNoContentConvertMetaItem.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWNoEditSectionMetaItem.js',
|
2013-11-15 22:10:42 +00:00
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWNoGalleryMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWNoTitleConvertMetaItem.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWRedirectMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWStaticRedirectMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWTOCDisableMetaItem.js',
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWTOCForceMetaItem.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWCategoryInputWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWCategoryPopupWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWCategoryItemWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWCategoryWidget.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js',
|
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWAdvancedSettingsPage.js',
|
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWCategoriesPage.js',
|
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWLanguagesPage.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWMetaDialog.js',
|
2014-02-27 15:17:00 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWMetaDialogTool.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
2014-03-18 20:52:39 +00:00
|
|
|
'styles' => array(
|
2014-04-18 20:27:48 +00:00
|
|
|
'modules/ve-mw/ui/styles/pages/ve.ui.MWCategoriesPage.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWCategoryInputWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWCategoryItemWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWCategoryPopupWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWCategoryWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/dialogs/ve.ui.MWMetaDialog.css',
|
2014-03-18 20:52:39 +00:00
|
|
|
),
|
2014-02-26 00:50:20 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mwcore',
|
|
|
|
'ext.visualEditor.mwlink',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'visualeditor-advancedsettings-tool',
|
|
|
|
'visualeditor-categories-tool',
|
2013-11-15 20:36:53 +00:00
|
|
|
'visualeditor-dialog-meta-advancedsettings-label',
|
|
|
|
'visualeditor-dialog-meta-advancedsettings-section',
|
2013-06-12 23:43:23 +00:00
|
|
|
'visualeditor-dialog-meta-categories-category',
|
2013-06-18 21:55:06 +00:00
|
|
|
'visualeditor-dialog-meta-categories-data-label',
|
2014-09-15 01:18:03 +00:00
|
|
|
'visualeditor-dialog-meta-categories-defaultsort-help',
|
2013-06-12 19:10:22 +00:00
|
|
|
'visualeditor-dialog-meta-categories-defaultsort-label',
|
2014-02-14 20:03:42 +00:00
|
|
|
'visualeditor-dialog-meta-categories-hidden',
|
2014-02-28 18:17:11 +00:00
|
|
|
'visualeditor-dialog-meta-categories-input-hiddencategorieslabel',
|
2013-05-25 10:01:32 +00:00
|
|
|
'visualeditor-dialog-meta-categories-input-matchingcategorieslabel',
|
2013-06-12 19:10:22 +00:00
|
|
|
'visualeditor-dialog-meta-categories-input-movecategorylabel',
|
|
|
|
'visualeditor-dialog-meta-categories-input-newcategorylabel',
|
|
|
|
'visualeditor-dialog-meta-categories-input-placeholder',
|
2014-11-05 22:45:09 +00:00
|
|
|
'visualeditor-dialog-meta-categories-missing',
|
2013-06-12 19:10:22 +00:00
|
|
|
'visualeditor-dialog-meta-categories-options',
|
|
|
|
'visualeditor-dialog-meta-categories-section',
|
2013-05-25 10:01:32 +00:00
|
|
|
'visualeditor-dialog-meta-categories-sortkey-label',
|
2013-12-11 01:46:46 +00:00
|
|
|
'visualeditor-dialog-meta-languages-code-label',
|
2013-06-12 19:10:22 +00:00
|
|
|
'visualeditor-dialog-meta-languages-label',
|
2013-05-25 12:08:43 +00:00
|
|
|
'visualeditor-dialog-meta-languages-link-label',
|
2013-12-04 15:30:21 +00:00
|
|
|
'visualeditor-dialog-meta-languages-name-label',
|
2013-05-25 12:08:43 +00:00
|
|
|
'visualeditor-dialog-meta-languages-readonlynote',
|
2013-06-12 19:10:22 +00:00
|
|
|
'visualeditor-dialog-meta-languages-section',
|
2014-04-22 21:07:13 +00:00
|
|
|
'visualeditor-dialog-meta-settings-displaytitle',
|
|
|
|
'visualeditor-dialog-meta-settings-displaytitle-enable',
|
2014-09-15 01:18:03 +00:00
|
|
|
'visualeditor-dialog-meta-settings-displaytitle-help',
|
2014-07-19 17:39:34 +00:00
|
|
|
'visualeditor-dialog-meta-settings-hiddencat-help',
|
2014-04-15 14:09:48 +00:00
|
|
|
'visualeditor-dialog-meta-settings-hiddencat-label',
|
2013-11-15 20:36:53 +00:00
|
|
|
'visualeditor-dialog-meta-settings-index-default',
|
|
|
|
'visualeditor-dialog-meta-settings-index-disable',
|
|
|
|
'visualeditor-dialog-meta-settings-index-force',
|
2014-09-15 01:18:03 +00:00
|
|
|
'visualeditor-dialog-meta-settings-index-help',
|
2013-11-15 20:36:53 +00:00
|
|
|
'visualeditor-dialog-meta-settings-index-label',
|
2013-12-19 16:38:02 +00:00
|
|
|
'visualeditor-dialog-meta-settings-label',
|
2013-11-15 20:50:15 +00:00
|
|
|
'visualeditor-dialog-meta-settings-newsectioneditlink-default',
|
|
|
|
'visualeditor-dialog-meta-settings-newsectioneditlink-disable',
|
|
|
|
'visualeditor-dialog-meta-settings-newsectioneditlink-force',
|
2014-09-15 01:18:03 +00:00
|
|
|
'visualeditor-dialog-meta-settings-newsectioneditlink-help',
|
2013-11-15 20:50:15 +00:00
|
|
|
'visualeditor-dialog-meta-settings-newsectioneditlink-label',
|
2014-09-15 01:18:03 +00:00
|
|
|
'visualeditor-dialog-meta-settings-nocontentconvert-help',
|
2014-04-15 14:09:48 +00:00
|
|
|
'visualeditor-dialog-meta-settings-nocontentconvert-label',
|
2014-07-19 17:39:34 +00:00
|
|
|
'visualeditor-dialog-meta-settings-noeditsection-help',
|
2014-07-24 02:09:27 +00:00
|
|
|
'visualeditor-dialog-meta-settings-noeditsection-label',
|
2014-07-19 17:39:34 +00:00
|
|
|
'visualeditor-dialog-meta-settings-nogallery-help',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-dialog-meta-settings-nogallery-label',
|
2014-09-15 01:18:03 +00:00
|
|
|
'visualeditor-dialog-meta-settings-notitleconvert-help',
|
2014-04-15 14:09:48 +00:00
|
|
|
'visualeditor-dialog-meta-settings-notitleconvert-label',
|
2014-07-19 17:39:34 +00:00
|
|
|
'visualeditor-dialog-meta-settings-redirect-help',
|
2013-11-13 20:15:44 +00:00
|
|
|
'visualeditor-dialog-meta-settings-redirect-label',
|
|
|
|
'visualeditor-dialog-meta-settings-redirect-placeholder',
|
2014-07-19 17:39:34 +00:00
|
|
|
'visualeditor-dialog-meta-settings-redirect-statichelp',
|
2013-11-13 20:15:44 +00:00
|
|
|
'visualeditor-dialog-meta-settings-redirect-staticlabel',
|
2013-12-19 16:38:02 +00:00
|
|
|
'visualeditor-dialog-meta-settings-section',
|
|
|
|
'visualeditor-dialog-meta-settings-toc-default',
|
|
|
|
'visualeditor-dialog-meta-settings-toc-disable',
|
|
|
|
'visualeditor-dialog-meta-settings-toc-force',
|
2014-07-19 17:39:34 +00:00
|
|
|
'visualeditor-dialog-meta-settings-toc-help',
|
2013-12-19 16:38:02 +00:00
|
|
|
'visualeditor-dialog-meta-settings-toc-label',
|
2013-06-12 19:10:22 +00:00
|
|
|
'visualeditor-dialog-meta-title',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-dialogbutton-meta-tooltip',
|
|
|
|
'visualeditor-languages-tool',
|
|
|
|
'visualeditor-meta-tool',
|
|
|
|
'visualeditor-settings-tool',
|
|
|
|
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2014-07-01 23:50:57 +00:00
|
|
|
'ext.visualEditor.mwreference.core' => $wgVisualEditorResourceTemplate + array(
|
2014-02-26 00:50:20 +00:00
|
|
|
'scripts' => array(
|
Ultra-mega-hyper-citation editing on crack
Objectives:
* Allow users on-wiki to create tools and dialogs for citation templates
of their choosing
* Allow editing of citation templates directly, without having to go
through the reference dialog
* Provide citation template tools within reference editing that use the
same titles and icons as the citation tools do, but don't wrap the
inserted content in a ref tag
Changes:
* Reference list was cloning the DOM element it was inserting into its
view before the generated content node could finish rendering, so it
never ended up showing the finished rendering in the reference list
* Documenting hack about use of reference list node's destroy method,
and how we are depending on destroy not canceling generated content
rendering
* Introduced reference model
* Added saving/updating method to transclusion model
* Added getPartsList method to dm transclusion node, which caches the
result and invalidates the cache on update
* Added citation dialog, which extends transclusion dialog
* Added cite group to toolbars, cite-template in reference dialog toolbar
* Factored out getting the node to edit and saving changes procedures in
transclusion dialog so they could be extended in citation dialog
* Updated uses of autoAdd as per changes in oojs-ui (Ic353f91)
* Renamed MWDialogTool file since there was only one tool in it
* Expanded TransclusionDialogTool file out since there is now more logic
to it
* Switched to using ve.dm.MWReferenceModel instead of plain objects in
reference search widget
Configuration:
If you add to MediaWiki:Visualeditor-cite-tool-definition.json the
following code you will magically be presented with a delightful array
of citation options:
[
{ "name": "web", "icon": "ref-cite-web", "template": "Cite web" },
{ "name": "book", "icon": "ref-cite-book", "template": "Cite book" },
{ "name": "news", "icon": "ref-cite-news", "template": "Cite news" },
{ "name": "journal", "icon": "ref-cite-journal", "template": "Cite journal" }
]
...or...
[
{
"name": "any-name",
"icon": "any-ooui-icon",
"template": "Any template",
"title": "Any title text"
}
]
The title text is derived either from the title property or from the name
property by pre-pending the string 'visualeditor-cite-tool-name-' to
generate a message key. Titles for 'web', 'book', 'news' and 'journal' are
provided. The icon is a normal oo-ui-icon name, and more icons can be
added, as usual, by adding a class called .oo-ui-icon-{icon name} to
MediaWiki:Common.css. 'ref-cite-web', 'ref-cite-book', 'ref-cite-news'
and 'ref-cite-journal' are provided. The template name is simply the name
of the template without its namespace prefix.
Depends on Ic353f91 in oojs-ui
Bug: 50110
Bug: 50768
Change-Id: Id401d973b8d5fe2faec481cc777c17a24fd19dd4
2014-03-21 18:56:46 +00:00
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWReferenceModel.js',
|
|
|
|
|
2014-08-19 18:32:46 +00:00
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWReferencesListNode.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js',
|
|
|
|
|
2014-08-19 18:32:46 +00:00
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWReferencesListNode.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWReferenceNode.js',
|
2014-07-01 23:50:57 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
2014-08-19 18:32:46 +00:00
|
|
|
'modules/ve-mw/ce/styles/nodes/ve.ce.MWReferencesListNode.css',
|
2014-07-01 23:50:57 +00:00
|
|
|
'modules/ve-mw/ce/styles/nodes/ve.ce.MWReferenceNode.css',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mwcore',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
2014-08-19 18:32:46 +00:00
|
|
|
'visualeditor-referenceslist-isempty',
|
|
|
|
'visualeditor-referenceslist-isempty-default',
|
|
|
|
'visualeditor-referenceslist-missingref',
|
2014-07-01 23:50:57 +00:00
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' )
|
|
|
|
),
|
2014-02-26 00:50:20 +00:00
|
|
|
|
2014-07-01 23:50:57 +00:00
|
|
|
'ext.visualEditor.mwreference' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
2014-08-23 02:36:39 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWReferenceGroupInputWidget.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWReferenceSearchWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWReferenceResultWidget.js',
|
|
|
|
|
2014-11-11 16:45:02 +00:00
|
|
|
'modules/ve-mw/ui/commands/ve.ui.MWUseExistingReferenceCommand.js',
|
|
|
|
|
Ultra-mega-hyper-citation editing on crack
Objectives:
* Allow users on-wiki to create tools and dialogs for citation templates
of their choosing
* Allow editing of citation templates directly, without having to go
through the reference dialog
* Provide citation template tools within reference editing that use the
same titles and icons as the citation tools do, but don't wrap the
inserted content in a ref tag
Changes:
* Reference list was cloning the DOM element it was inserting into its
view before the generated content node could finish rendering, so it
never ended up showing the finished rendering in the reference list
* Documenting hack about use of reference list node's destroy method,
and how we are depending on destroy not canceling generated content
rendering
* Introduced reference model
* Added saving/updating method to transclusion model
* Added getPartsList method to dm transclusion node, which caches the
result and invalidates the cache on update
* Added citation dialog, which extends transclusion dialog
* Added cite group to toolbars, cite-template in reference dialog toolbar
* Factored out getting the node to edit and saving changes procedures in
transclusion dialog so they could be extended in citation dialog
* Updated uses of autoAdd as per changes in oojs-ui (Ic353f91)
* Renamed MWDialogTool file since there was only one tool in it
* Expanded TransclusionDialogTool file out since there is now more logic
to it
* Switched to using ve.dm.MWReferenceModel instead of plain objects in
reference search widget
Configuration:
If you add to MediaWiki:Visualeditor-cite-tool-definition.json the
following code you will magically be presented with a delightful array
of citation options:
[
{ "name": "web", "icon": "ref-cite-web", "template": "Cite web" },
{ "name": "book", "icon": "ref-cite-book", "template": "Cite book" },
{ "name": "news", "icon": "ref-cite-news", "template": "Cite news" },
{ "name": "journal", "icon": "ref-cite-journal", "template": "Cite journal" }
]
...or...
[
{
"name": "any-name",
"icon": "any-ooui-icon",
"template": "Any template",
"title": "Any title text"
}
]
The title text is derived either from the title property or from the name
property by pre-pending the string 'visualeditor-cite-tool-name-' to
generate a message key. Titles for 'web', 'book', 'news' and 'journal' are
provided. The icon is a normal oo-ui-icon name, and more icons can be
added, as usual, by adding a class called .oo-ui-icon-{icon name} to
MediaWiki:Common.css. 'ref-cite-web', 'ref-cite-book', 'ref-cite-news'
and 'ref-cite-journal' are provided. The template name is simply the name
of the template without its namespace prefix.
Depends on Ic353f91 in oojs-ui
Bug: 50110
Bug: 50768
Change-Id: Id401d973b8d5fe2faec481cc777c17a24fd19dd4
2014-03-21 18:56:46 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js',
|
2014-08-19 18:32:46 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWReferencesListDialog.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js',
|
2014-02-27 15:17:00 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWReferenceDialogTool.js',
|
2014-04-02 23:29:04 +00:00
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWCitationDialogTool.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
2014-08-23 02:36:39 +00:00
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceGroupInputWidget.css',
|
2014-04-18 20:27:48 +00:00
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceResultWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWReferenceSearchWidget.css',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
2014-07-01 23:50:57 +00:00
|
|
|
'ext.visualEditor.mwreference.core',
|
Ultra-mega-hyper-citation editing on crack
Objectives:
* Allow users on-wiki to create tools and dialogs for citation templates
of their choosing
* Allow editing of citation templates directly, without having to go
through the reference dialog
* Provide citation template tools within reference editing that use the
same titles and icons as the citation tools do, but don't wrap the
inserted content in a ref tag
Changes:
* Reference list was cloning the DOM element it was inserting into its
view before the generated content node could finish rendering, so it
never ended up showing the finished rendering in the reference list
* Documenting hack about use of reference list node's destroy method,
and how we are depending on destroy not canceling generated content
rendering
* Introduced reference model
* Added saving/updating method to transclusion model
* Added getPartsList method to dm transclusion node, which caches the
result and invalidates the cache on update
* Added citation dialog, which extends transclusion dialog
* Added cite group to toolbars, cite-template in reference dialog toolbar
* Factored out getting the node to edit and saving changes procedures in
transclusion dialog so they could be extended in citation dialog
* Updated uses of autoAdd as per changes in oojs-ui (Ic353f91)
* Renamed MWDialogTool file since there was only one tool in it
* Expanded TransclusionDialogTool file out since there is now more logic
to it
* Switched to using ve.dm.MWReferenceModel instead of plain objects in
reference search widget
Configuration:
If you add to MediaWiki:Visualeditor-cite-tool-definition.json the
following code you will magically be presented with a delightful array
of citation options:
[
{ "name": "web", "icon": "ref-cite-web", "template": "Cite web" },
{ "name": "book", "icon": "ref-cite-book", "template": "Cite book" },
{ "name": "news", "icon": "ref-cite-news", "template": "Cite news" },
{ "name": "journal", "icon": "ref-cite-journal", "template": "Cite journal" }
]
...or...
[
{
"name": "any-name",
"icon": "any-ooui-icon",
"template": "Any template",
"title": "Any title text"
}
]
The title text is derived either from the title property or from the name
property by pre-pending the string 'visualeditor-cite-tool-name-' to
generate a message key. Titles for 'web', 'book', 'news' and 'journal' are
provided. The icon is a normal oo-ui-icon name, and more icons can be
added, as usual, by adding a class called .oo-ui-icon-{icon name} to
MediaWiki:Common.css. 'ref-cite-web', 'ref-cite-book', 'ref-cite-news'
and 'ref-cite-journal' are provided. The template name is simply the name
of the template without its namespace prefix.
Depends on Ic353f91 in oojs-ui
Bug: 50110
Bug: 50768
Change-Id: Id401d973b8d5fe2faec481cc777c17a24fd19dd4
2014-03-21 18:56:46 +00:00
|
|
|
'ext.visualEditor.mwtransclusion',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
2014-10-27 22:36:26 +00:00
|
|
|
'visualeditor-dialog-reference-editing-reused',
|
2013-06-23 03:29:55 +00:00
|
|
|
'visualeditor-dialog-reference-options-group-label',
|
2014-02-16 16:41:40 +00:00
|
|
|
'visualeditor-dialog-reference-options-group-placeholder',
|
2013-06-23 03:29:55 +00:00
|
|
|
'visualeditor-dialog-reference-options-name-label',
|
|
|
|
'visualeditor-dialog-reference-options-section',
|
|
|
|
'visualeditor-dialog-reference-title',
|
2013-07-17 19:09:30 +00:00
|
|
|
'visualeditor-dialog-reference-useexisting-label',
|
2014-07-03 20:42:54 +00:00
|
|
|
'visualeditor-dialog-reference-useexisting-tool',
|
2014-08-19 18:32:46 +00:00
|
|
|
'visualeditor-dialog-referenceslist-title',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-dialogbutton-reference-tooltip',
|
2014-08-19 18:32:46 +00:00
|
|
|
'visualeditor-dialogbutton-referenceslist-tooltip',
|
2014-02-26 00:50:20 +00:00
|
|
|
'visualeditor-reference-input-placeholder',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2014-07-01 23:50:57 +00:00
|
|
|
'ext.visualEditor.mwtransclusion.core' => $wgVisualEditorResourceTemplate + array(
|
2014-02-26 00:50:20 +00:00
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWTransclusionNode.js',
|
|
|
|
|
|
|
|
'modules/ve-mw/dm/metaitems/ve.dm.MWTransclusionMetaItem.js',
|
|
|
|
|
2014-07-01 23:50:57 +00:00
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWTransclusionNode.js',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mwcore',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.mwtransclusion' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
2014-02-27 01:42:00 +00:00
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWTransclusionModel.js',
|
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWTransclusionPartModel.js',
|
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWTransclusionContentModel.js',
|
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js',
|
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWTemplateModel.js',
|
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWTemplatePlaceholderModel.js',
|
|
|
|
'modules/ve-mw/dm/models/ve.dm.MWParameterModel.js',
|
|
|
|
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWParameterSearchWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWParameterResultWidget.js',
|
2014-04-08 19:15:15 +00:00
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWMoreParametersResultWidget.js',
|
|
|
|
'modules/ve-mw/ui/widgets/ve.ui.MWNoParametersResultWidget.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWTemplatePage.js',
|
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWParameterPage.js',
|
2014-02-27 23:58:37 +00:00
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWParameterPlaceholderPage.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWTemplatePlaceholderPage.js',
|
|
|
|
'modules/ve-mw/ui/pages/ve.ui.MWTransclusionContentPage.js',
|
|
|
|
|
2014-08-27 15:44:07 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWRequiredParamBlankConfirmDialog.js',
|
2014-04-10 19:07:40 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
'modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js',
|
2014-02-27 15:17:00 +00:00
|
|
|
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWTransclusionDialogTool.js',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'styles' => array(
|
2014-04-18 20:27:48 +00:00
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWParameterResultWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWMoreParametersResultWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWNoParametersResultWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/widgets/ve.ui.MWParameterSearchWidget.css',
|
|
|
|
'modules/ve-mw/ui/styles/pages/ve.ui.MWTransclusionContentPage.css',
|
|
|
|
'modules/ve-mw/ui/styles/dialogs/ve.ui.MWTransclusionDialog.css',
|
2014-05-08 06:17:01 +00:00
|
|
|
),
|
|
|
|
'skinStyles' => array(
|
|
|
|
'default' => array(
|
|
|
|
'modules/ve-mw/ui/themes/apex/pages/ve.ui.MWParameterPage.css',
|
|
|
|
'modules/ve-mw/ui/themes/apex/pages/ve.ui.MWTemplatePage.css',
|
|
|
|
),
|
|
|
|
'minerva' => array(
|
2014-08-28 20:48:46 +00:00
|
|
|
'modules/ve-mw/ui/themes/minerva/pages/ve.ui.MWParameterPage.css',
|
|
|
|
'modules/ve-mw/ui/themes/minerva/pages/ve.ui.MWTemplatePage.css',
|
2014-05-08 06:17:01 +00:00
|
|
|
),
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'dependencies' => array(
|
2014-07-01 23:50:57 +00:00
|
|
|
'ext.visualEditor.mwtransclusion.core',
|
2014-04-18 20:50:08 +00:00
|
|
|
'mediawiki.jqueryMsg',
|
2014-08-27 15:44:07 +00:00
|
|
|
'mediawiki.language',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
2014-02-27 23:51:35 +00:00
|
|
|
'visualeditor-dialog-template-title',
|
2013-06-18 21:55:06 +00:00
|
|
|
'visualeditor-dialog-transclusion-add-content',
|
|
|
|
'visualeditor-dialog-transclusion-add-param',
|
|
|
|
'visualeditor-dialog-transclusion-add-template',
|
|
|
|
'visualeditor-dialog-transclusion-content',
|
2014-04-25 23:50:21 +00:00
|
|
|
'visualeditor-dialog-transclusion-deprecated-parameter',
|
|
|
|
'visualeditor-dialog-transclusion-deprecated-parameter-description',
|
2014-03-06 23:39:40 +00:00
|
|
|
'visualeditor-dialog-transclusion-loading',
|
2014-03-04 22:56:14 +00:00
|
|
|
'visualeditor-dialog-transclusion-multiple-mode',
|
2014-03-06 23:40:43 +00:00
|
|
|
'visualeditor-dialog-transclusion-no-template-description',
|
2013-06-18 21:55:06 +00:00
|
|
|
'visualeditor-dialog-transclusion-options',
|
2014-04-25 23:50:21 +00:00
|
|
|
'visualeditor-dialog-transclusion-param-info',
|
|
|
|
'visualeditor-dialog-transclusion-param-info-missing',
|
2013-06-18 21:55:06 +00:00
|
|
|
'visualeditor-dialog-transclusion-placeholder',
|
|
|
|
'visualeditor-dialog-transclusion-remove-content',
|
|
|
|
'visualeditor-dialog-transclusion-remove-param',
|
|
|
|
'visualeditor-dialog-transclusion-remove-template',
|
2014-01-14 19:16:49 +00:00
|
|
|
'visualeditor-dialog-transclusion-required-parameter',
|
2014-04-25 23:50:21 +00:00
|
|
|
'visualeditor-dialog-transclusion-required-parameter-description',
|
2014-08-27 15:44:07 +00:00
|
|
|
'visualeditor-dialog-transclusion-required-parameter-dialog-cancel',
|
|
|
|
'visualeditor-dialog-transclusion-required-parameter-dialog-ok',
|
|
|
|
'visualeditor-dialog-transclusion-required-parameter-dialog-title',
|
|
|
|
'visualeditor-dialog-transclusion-required-parameter-is-blank',
|
2014-03-04 22:56:14 +00:00
|
|
|
'visualeditor-dialog-transclusion-single-mode',
|
2014-04-30 21:34:45 +00:00
|
|
|
'visualeditor-dialog-transclusion-title',
|
2013-06-18 21:55:06 +00:00
|
|
|
'visualeditor-dialog-transclusion-wikitext-label',
|
2014-03-06 02:42:58 +00:00
|
|
|
'visualeditor-dialogbutton-template-tooltip',
|
2013-06-18 21:55:06 +00:00
|
|
|
'visualeditor-dialogbutton-transclusion-tooltip',
|
2013-07-02 20:40:54 +00:00
|
|
|
'visualeditor-parameter-input-placeholder',
|
2014-04-08 19:15:15 +00:00
|
|
|
'visualeditor-parameter-search-more',
|
2013-07-02 20:40:54 +00:00
|
|
|
'visualeditor-parameter-search-no-unused',
|
|
|
|
'visualeditor-parameter-search-unknown',
|
2014-08-27 15:44:07 +00:00
|
|
|
'quotation-marks',
|
2012-02-07 16:37:08 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2012-08-30 20:04:22 +00:00
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2013-10-21 22:30:49 +00:00
|
|
|
'ext.visualEditor.language' => $wgVisualEditorResourceTemplate + array(
|
2013-04-16 17:31:17 +00:00
|
|
|
'scripts' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/dm/annotations/ve.dm.LanguageAnnotation.js',
|
|
|
|
'lib/ve/src/ce/annotations/ve.ce.LanguageAnnotation.js',
|
|
|
|
'lib/ve/src/ui/widgets/ve.ui.LanguageResultWidget.js',
|
|
|
|
'lib/ve/src/ui/widgets/ve.ui.LanguageSearchWidget.js',
|
|
|
|
'lib/ve/src/ui/dialogs/ve.ui.LanguageSearchDialog.js',
|
|
|
|
'lib/ve/src/ui/inspectors/ve.ui.LanguageInspector.js',
|
|
|
|
'lib/ve/src/ui/tools/ve.ui.LanguageInspectorTool.js',
|
|
|
|
'lib/ve/src/ui/widgets/ve.ui.LanguageInputWidget.js',
|
2013-04-16 17:31:17 +00:00
|
|
|
),
|
2014-03-18 20:52:39 +00:00
|
|
|
'styles' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.LanguageInputWidget.css',
|
|
|
|
'lib/ve/src/ui/styles/widgets/ve.ui.LanguageSearchWidget.css',
|
2014-03-18 20:52:39 +00:00
|
|
|
),
|
2013-04-16 17:31:17 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.core',
|
2014-04-24 23:54:58 +00:00
|
|
|
'mediawiki.language.names',
|
2013-05-07 23:00:23 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
2014-04-22 02:13:42 +00:00
|
|
|
'visualeditor-annotationbutton-language-tooltip',
|
2014-05-11 08:11:43 +00:00
|
|
|
'visualeditor-dialog-language-auto-direction',
|
2014-04-22 02:13:42 +00:00
|
|
|
'visualeditor-dialog-language-search-title',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-language-search-input-placeholder',
|
|
|
|
'visualeditor-languageannotation-description',
|
|
|
|
'visualeditor-languageannotation-description-with-dir',
|
2013-08-29 00:25:52 +00:00
|
|
|
'visualeditor-languageinspector-title',
|
|
|
|
'visualeditor-languageinspector-widget-changelang',
|
|
|
|
'visualeditor-languageinspector-widget-label-direction',
|
2014-09-08 18:47:56 +00:00
|
|
|
'visualeditor-languageinspector-widget-label-langcode',
|
|
|
|
'visualeditor-languageinspector-widget-label-language',
|
2013-10-21 22:30:49 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2013-10-21 22:30:49 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'ext.visualEditor.mwalienextension' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
2013-12-19 20:28:07 +00:00
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWAlienExtensionNode.js',
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWAlienExtensionNode.js',
|
|
|
|
'modules/ve-mw/ui/inspectors/ve.ui.MWAlienExtensionInspector.js',
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWAlienExtensionInspectorTool.js',
|
2013-10-21 22:30:49 +00:00
|
|
|
),
|
2014-02-26 00:50:20 +00:00
|
|
|
'styles' => array(
|
2014-04-18 20:27:48 +00:00
|
|
|
'modules/ve-mw/ui/styles/inspectors/ve.ui.MWAlienExtensionInspector.css',
|
2014-02-26 00:50:20 +00:00
|
|
|
),
|
2013-10-21 22:30:49 +00:00
|
|
|
'dependencies' => array(
|
2013-12-14 21:06:19 +00:00
|
|
|
'ext.visualEditor.mwcore',
|
2013-10-21 22:30:49 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
2013-08-29 00:25:52 +00:00
|
|
|
'visualeditor-mwalienextensioninspector-title',
|
2013-05-07 23:00:23 +00:00
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2013-04-16 17:31:17 +00:00
|
|
|
),
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2014-01-15 03:04:58 +00:00
|
|
|
'ext.visualEditor.mwgallery' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'modules/ve-mw/dm/nodes/ve.dm.MWGalleryNode.js',
|
|
|
|
'modules/ve-mw/ce/nodes/ve.ce.MWGalleryNode.js',
|
|
|
|
'modules/ve-mw/ui/inspectors/ve.ui.MWGalleryInspector.js',
|
|
|
|
'modules/ve-mw/ui/tools/ve.ui.MWGalleryInspectorTool.js',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.mwcore',
|
|
|
|
),
|
|
|
|
'messages' => array(
|
2014-02-03 20:04:36 +00:00
|
|
|
'visualeditor-mwgalleryinspector-placeholder',
|
2014-01-15 03:04:58 +00:00
|
|
|
'visualeditor-mwgalleryinspector-title',
|
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
),
|
|
|
|
|
2013-10-21 22:30:49 +00:00
|
|
|
'ext.visualEditor.experimental' => array(
|
|
|
|
'dependencies' => array(
|
|
|
|
'ext.visualEditor.language',
|
|
|
|
'ext.visualEditor.mwalienextension',
|
|
|
|
),
|
2013-10-11 18:42:46 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2013-10-21 22:30:49 +00:00
|
|
|
),
|
|
|
|
|
2014-05-21 23:02:22 +00:00
|
|
|
'ext.visualEditor.icons' => $wgVisualEditorResourceTemplate + array(
|
2013-10-21 22:30:49 +00:00
|
|
|
'styles' => array(
|
2014-08-14 21:16:47 +00:00
|
|
|
'lib/ve/src/ui/styles/ve.ui.Icons.css',
|
2014-05-21 23:02:22 +00:00
|
|
|
'modules/ve-mw/ui/styles/ve.ui.Icons.css',
|
2013-10-21 22:30:49 +00:00
|
|
|
),
|
2014-03-07 18:59:09 +00:00
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2013-10-21 22:30:49 +00:00
|
|
|
),
|
2014-07-04 00:38:18 +00:00
|
|
|
|
|
|
|
'ext.visualEditor.iehacks' => $wgVisualEditorResourceTemplate + array(
|
|
|
|
'styles' => array(
|
|
|
|
'modules/ve-mw/init/styles/ve.init.mw.IEHacks.css'
|
2014-10-03 20:22:44 +00:00
|
|
|
),
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
2014-07-04 00:38:18 +00:00
|
|
|
),
|
2011-11-28 20:28:28 +00:00
|
|
|
);
|
2012-05-25 19:50:48 +00:00
|
|
|
|
2014-04-29 21:17:36 +00:00
|
|
|
/* Extend MediaWiki configuration */
|
|
|
|
|
|
|
|
// Set default values for new preferences
|
|
|
|
$wgDefaultUserOptions['visualeditor-enable'] = 0;
|
|
|
|
$wgDefaultUserOptions['visualeditor-betatempdisable'] = 0;
|
|
|
|
$wgDefaultUserOptions['visualeditor-enable-experimental'] = 0;
|
|
|
|
$wgDefaultUserOptions['visualeditor-enable-language'] = 0;
|
2014-04-14 23:40:19 +00:00
|
|
|
$wgDefaultUserOptions['visualeditor-hidebetawelcome'] = 0;
|
2013-06-15 02:07:34 +00:00
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
/* Configuration */
|
2013-06-15 02:07:34 +00:00
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
// Array of ResourceLoader module names (strings) that should be loaded when VisualEditor is
|
|
|
|
// loaded. Other extensions that extend VisualEditor should add to this array.
|
|
|
|
$wgVisualEditorPluginModules = array();
|
2012-06-21 20:39:27 +00:00
|
|
|
|
2014-01-06 08:43:37 +00:00
|
|
|
// Array of modules to load based on a preference. Keys are preference names, values are
|
|
|
|
// ResourceLoader module names.
|
2014-04-29 21:17:36 +00:00
|
|
|
// Remember to also set defaults in $wgDefaultUserOptions!
|
2014-01-06 08:43:37 +00:00
|
|
|
$wgVisualEditorPreferenceModules = array(
|
|
|
|
'visualeditor-enable-experimental' => 'ext.visualEditor.experimental',
|
2014-04-16 00:33:11 +00:00
|
|
|
'visualeditor-enable-language' => 'ext.visualEditor.language',
|
2014-01-06 08:43:37 +00:00
|
|
|
//'visualeditor-enable-mwalienextension' => 'ext.visualEditor.mwalienextension',
|
|
|
|
);
|
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
// URL to the Parsoid instance
|
|
|
|
// MUST NOT end in a slash due to Parsoid bug
|
|
|
|
$wgVisualEditorParsoidURL = 'http://localhost:8000';
|
|
|
|
|
2014-02-07 16:10:59 +00:00
|
|
|
// Proxy to use for curl requests.
|
|
|
|
// false: use direct connection to Parsoid daemon ($wgHTTPProxy is not used
|
|
|
|
// either)
|
|
|
|
$wgVisualEditorParsoidHTTPProxy = false;
|
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
// Interwiki prefix to pass to the Parsoid instance
|
|
|
|
// Parsoid will be called as $url/$prefix/$pagename
|
|
|
|
$wgVisualEditorParsoidPrefix = 'localhost';
|
|
|
|
|
2013-10-22 00:24:27 +00:00
|
|
|
// Forward users' Cookie: headers to Parsoid. Required for private wikis (login required to read).
|
|
|
|
// If the wiki is not private (i.e. $wgGroupPermissions['*']['read'] is true) this configuration
|
|
|
|
// variable will be ignored.
|
|
|
|
//
|
|
|
|
// This feature requires a non-locking session store. The default session store will not work and
|
|
|
|
// will cause deadlocks when trying to use this feature. If you experience deadlock issues, enable
|
|
|
|
// $wgSessionsInObjectCache.
|
|
|
|
//
|
|
|
|
// WARNING: ONLY enable this on private wikis and ONLY IF you understand the SECURITY IMPLICATIONS
|
|
|
|
// of sending Cookie headers to Parsoid over HTTP. For security reasons, it is strongly recommended
|
|
|
|
// that $wgVisualEditorParsoidURL be pointed to localhost if this setting is enabled.
|
|
|
|
$wgVisualEditorParsoidForwardCookies = false;
|
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
// Timeout for HTTP requests to Parsoid in seconds
|
|
|
|
$wgVisualEditorParsoidTimeout = 100;
|
|
|
|
|
2013-11-01 21:30:22 +00:00
|
|
|
// Serialization cache timeout, in seconds
|
|
|
|
$wgVisualEditorSerializationCacheTimeout = 3600;
|
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
// Namespaces to enable VisualEditor in
|
2014-03-11 00:10:13 +00:00
|
|
|
$wgVisualEditorNamespaces = array_merge( $wgContentNamespaces, array( NS_USER ) );
|
2013-07-26 20:08:32 +00:00
|
|
|
|
2014-01-09 01:32:13 +00:00
|
|
|
// Whether to enable the (experimental for now) TOC widget
|
|
|
|
$wgVisualEditorEnableTocWidget = false;
|
|
|
|
|
2013-10-07 22:55:22 +00:00
|
|
|
// List of skins VisualEditor integration supports
|
2014-02-14 02:33:48 +00:00
|
|
|
$wgVisualEditorSupportedSkins = array( 'vector', 'apex', 'monobook', 'minerva' );
|
2013-10-07 22:55:22 +00:00
|
|
|
|
2013-10-10 12:33:49 +00:00
|
|
|
// List of browsers VisualEditor is incompatibe with
|
|
|
|
// See jQuery.client for specification
|
|
|
|
$wgVisualEditorBrowserBlacklist = array(
|
|
|
|
// IE <= 8 has various incompatibilities in layout and feature support
|
2014-09-26 18:56:19 +00:00
|
|
|
// IE10 and 11 have problems but mostly work OK-ish so they're greylisted; IE9 to come
|
|
|
|
'msie' => array ( array( '<=', 9 ) ),
|
2013-10-10 12:33:49 +00:00
|
|
|
// Android 2.x and below "support" CE but don't trigger keyboard input
|
|
|
|
'android' => array( array( '<', 3 ) ),
|
|
|
|
// Firefox issues in versions 12 and below (bug 50780)
|
|
|
|
// Wikilink [[./]] bug in Firefox 14 and below (bug 50720)
|
|
|
|
'firefox' => array( array( '<=', 14 ) ),
|
|
|
|
// Opera < 12 was not tested and it's userbase is almost nonexistent anyway
|
|
|
|
'opera' => array( array( '<', 12 ) ),
|
|
|
|
// Blacklist all versions:
|
|
|
|
'blackberry' => null,
|
2013-07-05 16:20:38 +00:00
|
|
|
'silk' => null,
|
2013-10-10 12:33:49 +00:00
|
|
|
);
|
|
|
|
|
2013-07-26 20:08:32 +00:00
|
|
|
// Whether to use change tagging for VisualEditor edits
|
|
|
|
$wgVisualEditorUseChangeTagging = true;
|
|
|
|
|
|
|
|
// Whether to disable for logged-in users
|
|
|
|
// This allows you to enable the 'visualeditor-enable' preference by default
|
|
|
|
// but still disable VE for logged-out users (by setting this to false).
|
|
|
|
$wgVisualEditorDisableForAnons = false;
|
|
|
|
|
2013-08-01 20:18:33 +00:00
|
|
|
// Whether to show the "welcome to the beta" dialog the first time a user uses VisualEditor
|
|
|
|
$wgVisualEditorShowBetaWelcome = false;
|
|
|
|
|
2013-08-01 19:14:41 +00:00
|
|
|
// Where to put the VisualEditor edit tab
|
|
|
|
// 'before': put it right before the old edit tab
|
|
|
|
// 'after': put it right after the old edit tab
|
|
|
|
$wgVisualEditorTabPosition = 'before';
|
|
|
|
|
|
|
|
$wgVisualEditorTabMessages = array(
|
|
|
|
// i18n message key to use for the VisualEditor edit tab
|
|
|
|
// If null, the default edit tab caption will be used
|
|
|
|
// The 'visualeditor-ca-ve-edit' message is available for this
|
|
|
|
'edit' => null,
|
|
|
|
// i18n message key to use for the old edit tab
|
|
|
|
// If null, the tab's caption will not be changed
|
|
|
|
'editsource' => 'visualeditor-ca-editsource',
|
|
|
|
// i18n message key to use for the VisualEditor create tab
|
|
|
|
// If null, the default create tab caption will be used
|
|
|
|
// The 'visualeditor-ca-ve-create' message is available for this
|
|
|
|
'create' => null,
|
|
|
|
// i18n message key to use for the old create tab
|
|
|
|
// If null, the tab's caption will not be changed
|
|
|
|
'createsource' => 'visualeditor-ca-createsource',
|
2014-04-08 23:07:33 +00:00
|
|
|
// i18n message key to use for the old create tab on pages for files in foreign repos
|
|
|
|
// If null, the tab's caption will not be changed
|
|
|
|
'editlocaldescriptionsource' => 'visualeditor-ca-editlocaldescriptionsource',
|
|
|
|
// i18n message key to use for the old edit tab on pages for files in foreign repos
|
|
|
|
// If null, the tab's caption will not be changed
|
|
|
|
'createlocaldescriptionsource' => 'visualeditor-ca-createlocaldescriptionsource',
|
2013-08-01 19:14:41 +00:00
|
|
|
// i18n message key to use for the VisualEditor section edit link
|
|
|
|
// If null, the default edit section link caption will be used
|
|
|
|
'editsection' => null,
|
|
|
|
// i18n message key to use for the source section edit link
|
|
|
|
// If null, the link's caption will not be changed
|
|
|
|
'editsectionsource' => 'visualeditor-ca-editsource-section',
|
|
|
|
|
|
|
|
// i18n message key for an optional appendix to add to each of these from JS
|
|
|
|
// Use this if you have HTML messages to add
|
|
|
|
// The 'visualeditor-beta-appendix' message is available for this purpose
|
|
|
|
'editappendix' => null,
|
|
|
|
'editsourceappendix' => null,
|
|
|
|
'createappendix' => null,
|
|
|
|
'createsourceappendix' => null,
|
|
|
|
'editsectionappendix' => null,
|
|
|
|
'editsectionsourceappendix' => null,
|
|
|
|
);
|