mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 09:26:37 +00:00
d42a0772bb
Avoids having to update the date in every file every year, which we stopped doing. Change-Id: I7bf7aa0937eef911e00772470091753a7b06fd3d
38 lines
838 B
JavaScript
38 lines
838 B
JavaScript
/*!
|
|
* VisualEditor ContentEditable MWIncludesNode class.
|
|
*
|
|
* @copyright See AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* ContentEditable MW node for noinclude, includeonly and onlyinclude tags.
|
|
*
|
|
* @class
|
|
* @extends ve.ce.AlienInlineNode
|
|
* @constructor
|
|
* @param {ve.dm.MWIncludesNode} model
|
|
* @param {Object} [config]
|
|
*/
|
|
ve.ce.MWIncludesNode = function VeCeMWIncludesNode() {
|
|
// Parent constructor
|
|
ve.ce.MWIncludesNode.super.apply( this, arguments );
|
|
|
|
// DOM changes
|
|
this.$element
|
|
.addClass( 've-ce-mwIncludesNode' )
|
|
.text( this.model.getWikitextTag() );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ce.MWIncludesNode, ve.ce.AlienInlineNode );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.ce.MWIncludesNode.static.name = 'mwIncludes';
|
|
|
|
/* Registration */
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWIncludesNode );
|