Debian Codegraph @

extensions/VisualEditor/lib/ve/src/dm/annotations/ve.dm.QuotationAnnotation.js

raw symbols SCIP
1 /*!
2 * VisualEditor DataModel QuotationAnnotation class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * DataModel quotation annotation.
9 *
10 * Represents `<q>` tags.
11 *
12 * @class
13 * @extends ve.dm.TextStyleAnnotation
14 * @constructor
15 * @param {Object} element
16 */
17 ve.dm.QuotationAnnotation = function VeDmQuotationAnnotation() {
18 // Parent constructor
19 ve.dm.QuotationAnnotation.super.apply( this, arguments );
20 };
21
22 /* Inheritance */
23
24 OO.inheritClass( ve.dm.QuotationAnnotation, ve.dm.TextStyleAnnotation );
25
26 /* Static Properties */
27
28 ve.dm.QuotationAnnotation.static.name = 'textStyle/quotation';
29
30 ve.dm.QuotationAnnotation.static.matchTagNames = [ 'q' ];
31
32 /* Registration */
33
34 ve.dm.modelRegistry.register( ve.dm.QuotationAnnotation );