mediawiki-extensions-Visual.../modules/ve-mw/ce/nodes/ve.ce.MWAnnotationNode.js
Ed Sanders d42a0772bb Move verbose copyright message to AUTHORS.txt
Avoids having to update the date in every file every year,
which we stopped doing.

Change-Id: I7bf7aa0937eef911e00772470091753a7b06fd3d
2023-12-01 16:07:39 +00:00

30 lines
676 B
JavaScript

/*!
* VisualEditor ContentEditable MWAnnotationNode class.
*
* @copyright See AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* ContentEditable MW node for annotation tags.
*
* @class
* @extends ve.ce.AlienInlineNode
* @constructor
* @param {ve.dm.MWAnnotationNode} model
* @param {Object} [config]
*/
ve.ce.MWAnnotationNode = function VeCeMWAnnotationNode() {
// Parent constructor
ve.ce.MWAnnotationNode.super.apply( this, arguments );
// DOM changes
this.$element
.addClass( 've-ce-mwAnnotationNode' )
.text( this.model.getWikitextTag() );
};
/* Inheritance */
OO.inheritClass( ve.ce.MWAnnotationNode, ve.ce.AlienInlineNode );