2021-10-01 11:16:11 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWAnnotationNode class.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2021-10-01 11:16:11 +00:00
|
|
|
* @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 );
|