Debian Codegraph @

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

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