Debian Codegraph @

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

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