Debian Codegraph @

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

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