mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-02 01:46:47 +00:00
ad3a7c95c8
VisualEditor.i18n.php, VisualEditor.php * Button title * New experimental files ve.*.MWAlienExtensionNode.js * Very basic extension of ve.*.MWExtensionNode ve.ui.MWAlienExtensionInspector.js * Default to inline-block for wrapper. Should probably get rid of styled wrappers for GeneratedContent eventually. ve.ui.MWAlienExtensionInspector.js * Basic extension of MWExtensionInspector. Override title to use tag name e.g. '<easytimeline>'. Could be changed in future to 'Extension: easytimeline' or similar. *.png, *.svg, *Icons*.css, ve.ui.MWAlienExtensionButtonTool.js * Angle bracket icon for button (open to suggestions) ve.ui.MWInspector.css * Make extension inspector text input tall by default. Change-Id: I07f0686839192cad3cd8dfd3233ae907fe5cdf6a
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
/*!
|
|
* VisualEditor UserInterface MWAlienExtensionButtonTool class.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* UserInterface MediaWiki alien extension button tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.InspectorButtonTool
|
|
* @constructor
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
* @param {Object} [config] Config options
|
|
*/
|
|
ve.ui.MWAlienExtensionButtonTool = function VeUiMWAlienExtensionButtonTool( toolbar, config ) {
|
|
// Parent constructor
|
|
ve.ui.InspectorButtonTool.call( this, toolbar, config );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.inheritClass( ve.ui.MWAlienExtensionButtonTool, ve.ui.InspectorButtonTool );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.ui.MWAlienExtensionButtonTool.static.name = 'mwAlienExtension';
|
|
|
|
ve.ui.MWAlienExtensionButtonTool.static.icon = 'alienextension';
|
|
|
|
ve.ui.MWAlienExtensionButtonTool.static.titleMessage = 'visualeditor-mwalienextensioninspector-title';
|
|
|
|
ve.ui.MWAlienExtensionButtonTool.static.inspector = 'mwAlienExtensionInspector';
|
|
|
|
ve.ui.MWAlienExtensionButtonTool.static.modelClasses = [ ve.dm.MWAlienExtensionNode ];
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.toolFactory.register( 'mwAlienExtension', ve.ui.MWAlienExtensionButtonTool );
|