2013-08-07 05:21:10 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWAlienExtensionNode class.
|
|
|
|
*
|
2014-01-05 12:05:05 +00:00
|
|
|
* @copyright 2011-2014 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
|
2014-05-20 11:56:37 +00:00
|
|
|
* @extends ve.ce.MWBlockExtensionNode
|
2013-08-07 05:21:10 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.dm.MWAlienExtensionNode} model Model to observe
|
2013-09-25 10:21:09 +00:00
|
|
|
* @param {Object} [config] Configuration options
|
2013-08-07 05:21:10 +00:00
|
|
|
*/
|
|
|
|
ve.ce.MWAlienExtensionNode = function VeCeMWAlienExtensionNode( model, config ) {
|
|
|
|
// Parent constructor
|
2014-05-20 11:56:37 +00:00
|
|
|
ve.ce.MWBlockExtensionNode.call( this, model, config );
|
2013-08-07 05:21:10 +00:00
|
|
|
|
2013-08-28 22:55:35 +00:00
|
|
|
// DOM changes
|
2013-11-01 19:45:59 +00:00
|
|
|
this.$element.addClass( 've-ce-mwAlienExtensionNode' );
|
2013-08-07 05:21:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2014-05-20 11:56:37 +00:00
|
|
|
OO.inheritClass( ve.ce.MWAlienExtensionNode, ve.ce.MWBlockExtensionNode );
|
2013-08-07 05:21:10 +00:00
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ce.MWAlienExtensionNode.static.name = 'mwAlienExtension';
|
|
|
|
|
2013-12-20 23:25:24 +00:00
|
|
|
ve.ce.MWAlienExtensionNode.static.primaryCommandName = 'alienExtension';
|
|
|
|
|
2013-08-07 05:21:10 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWAlienExtensionNode );
|