Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ce/nodes/ve.ce.MWAnnotationNode.js

raw symbols SCIP
1 /*!
2 * VisualEditor ContentEditable MWAnnotationNode class.
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7
8 /**
9 * ContentEditable MW node for annotation tags.
10 *
11 * @class
12 * @extends ve.ce.AlienInlineNode
13 * @constructor
14 * @param {ve.dm.MWAnnotationNode} model
15 * @param {Object} [config]
16 */
17 ve.ce.MWAnnotationNode = function VeCeMWAnnotationNode() {
18 // Parent constructor
19 ve.ce.MWAnnotationNode.super.apply( this, arguments );
20
21 // DOM changes
22 this.$element
23 .addClass( 've-ce-mwAnnotationNode' )
24 .text( this.model.getWikitextTag() );
25 };
26
27 /* Inheritance */
28
29 OO.inheritClass( ve.ce.MWAnnotationNode, ve.ce.AlienInlineNode );