mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-12 06:27:01 +00:00
30 lines
716 B
JavaScript
30 lines
716 B
JavaScript
|
/*!
|
||
|
* VisualEditor ContentEditable MWAnnotationNode class.
|
||
|
*
|
||
|
* @copyright 2011-2021 VisualEditor Team and others; 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 );
|