Debian Codegraph @

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

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