2013-08-07 05:21:10 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWAlienExtensionNode class.
|
|
|
|
*
|
2020-01-08 17:13:04 +00:00
|
|
|
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
|
2013-08-07 05:21:10 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ContentEditable MediaWiki alien extension node.
|
|
|
|
*
|
|
|
|
* @class
|
2015-03-23 15:49:38 +00:00
|
|
|
* @abstract
|
2013-08-07 05:21:10 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
*/
|
2016-03-06 16:25:28 +00:00
|
|
|
ve.ce.MWAlienExtensionNode = function VeCeMWAlienExtensionNode() {
|
2013-08-07 05:21:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2015-03-23 15:49:38 +00:00
|
|
|
OO.initClass( ve.ce.MWAlienExtensionNode );
|
2013-08-07 05:21:10 +00:00
|
|
|
|
2015-03-23 15:49:38 +00:00
|
|
|
/* Static members */
|
2013-08-07 05:21:10 +00:00
|
|
|
|
2013-12-20 23:25:24 +00:00
|
|
|
ve.ce.MWAlienExtensionNode.static.primaryCommandName = 'alienExtension';
|
|
|
|
|
2018-03-20 17:26:35 +00:00
|
|
|
ve.ce.MWAlienExtensionNode.static.iconWhenInvisible = 'markup';
|
2015-03-20 21:39:54 +00:00
|
|
|
|
2017-10-02 15:20:49 +00:00
|
|
|
ve.ce.MWAlienExtensionNode.static.rendersEmpty = true;
|
|
|
|
|
2016-03-06 16:25:28 +00:00
|
|
|
/* Methods */
|
2014-11-12 19:02:57 +00:00
|
|
|
|
2015-03-23 15:49:38 +00:00
|
|
|
/* Static methods */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @inheritdoc ve.ce.MWExtensionNode
|
|
|
|
*/
|
|
|
|
ve.ce.MWAlienExtensionNode.static.getDescription = function ( model ) {
|
|
|
|
return model.getExtensionName();
|
|
|
|
};
|