Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ce/annotations/ve.ce.MWNowikiAnnotation.js

raw symbols SCIP
1 /*!
2 * VisualEditor ContentEditable MWNowikiAnnotation class.
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7
8 /**
9 * ContentEditable MediaWiki nowiki annotation.
10 *
11 * @class
12 * @extends ve.ce.Annotation
13 * @constructor
14 * @param {ve.dm.MWNowikiAnnotation} model Model to observe
15 * @param {Object} [config] Configuration options
16 */
17 ve.ce.MWNowikiAnnotation = function VeCeMWNowikiAnnotation() {
18 // Parent constructor
19 ve.ce.MWNowikiAnnotation.super.apply( this, arguments );
20
21 // DOM changes
22 this.$element.addClass( 've-ce-mwNowikiAnnotation' );
23 };
24
25 /* Inheritance */
26
27 OO.inheritClass( ve.ce.MWNowikiAnnotation, ve.ce.Annotation );
28
29 /* Static Properties */
30
31 ve.ce.MWNowikiAnnotation.static.name = 'mwNowiki';
32
33 ve.ce.MWNowikiAnnotation.static.tagName = 'span';
34
35 /* Registration */
36
37 ve.ce.annotationFactory.register( ve.ce.MWNowikiAnnotation );