Debian Codegraph @

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

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