Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ce/nodes/ve.ce.MWGalleryCaptionNode.js

raw symbols SCIP
1 /*!
2 * VisualEditor ContentEditable GalleryCaptionNode class.
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7
8 /**
9 * ContentEditable gallery caption node.
10 *
11 * @class
12 * @extends ve.ce.BranchNode
13 * @mixes ve.ce.ActiveNode
14 *
15 * @constructor
16 * @param {ve.dm.MWGalleryCaptionNode} model Model to observe
17 * @param {Object} [config] Configuration options
18 */
19 ve.ce.MWGalleryCaptionNode = function VeCeMWGalleryCaptionNode() {
20 // Parent constructor
21 ve.ce.MWGalleryCaptionNode.super.apply( this, arguments );
22
23 // Mixin constructor
24 ve.ce.ActiveNode.call( this );
25
26 // Build DOM
27 this.$element.addClass( 'gallerycaption' );
28 };
29
30 /* Inheritance */
31
32 OO.inheritClass( ve.ce.MWGalleryCaptionNode, ve.ce.BranchNode );
33
34 OO.mixinClass( ve.ce.MWGalleryCaptionNode, ve.ce.ActiveNode );
35
36 /* Static Properties */
37
38 ve.ce.MWGalleryCaptionNode.static.name = 'mwGalleryCaption';
39
40 ve.ce.MWGalleryCaptionNode.static.tagName = 'li';
41
42 /* Methods */
43
44 /* Registration */
45
46 ve.ce.nodeFactory.register( ve.ce.MWGalleryCaptionNode );