2016-11-19 23:11:06 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable GalleryImageCaptionNode class.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2016-11-19 23:11:06 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ContentEditable gallery image caption node.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ce.BranchNode
|
2023-02-15 01:55:13 +00:00
|
|
|
* @mixins ve.ce.ActiveNode
|
|
|
|
*
|
2016-11-19 23:11:06 +00:00
|
|
|
* @constructor
|
|
|
|
* @param {ve.dm.MWGalleryImageCaptionNode} model Model to observe
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ce.MWGalleryImageCaptionNode = function VeCeMWGalleryImageCaptionNode() {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ce.MWGalleryImageCaptionNode.super.apply( this, arguments );
|
|
|
|
|
2023-02-15 01:55:13 +00:00
|
|
|
// Mixin constructor
|
|
|
|
ve.ce.ActiveNode.call( this );
|
|
|
|
|
2016-11-19 23:11:06 +00:00
|
|
|
this.$element.addClass( 'gallerytext' );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ce.MWGalleryImageCaptionNode, ve.ce.BranchNode );
|
|
|
|
|
2023-02-15 01:55:13 +00:00
|
|
|
OO.mixinClass( ve.ce.MWGalleryImageCaptionNode, ve.ce.ActiveNode );
|
|
|
|
|
2016-11-19 23:11:06 +00:00
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ce.MWGalleryImageCaptionNode.static.name = 'mwGalleryImageCaption';
|
|
|
|
|
|
|
|
ve.ce.MWGalleryImageCaptionNode.static.tagName = 'div';
|
|
|
|
|
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWGalleryImageCaptionNode );
|