Debian Codegraph @

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

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