mediawiki-extensions-Visual.../modules/ve-mw/ui/widgets/ve.ui.MWTargetWidget.js
James D. Forrester ada58df361 build: Bump file copyright notices for 2016
Change-Id: I3c618c196e504a80ca297a4132a17f1977a24fb7
2016-01-03 14:57:25 -08:00

32 lines
831 B
JavaScript

/*!
* VisualEditor UserInterface MWTargetWidget class.
*
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Creates an ve.ui.MWTargetWidget object.
*
* @class
* @abstract
* @extends ve.ui.TargetWidget
*
* @constructor
* @param {ve.dm.Document} doc Document model
* @param {Object} [config] Configuration options
*/
ve.ui.MWTargetWidget = function VeUiMWTargetWidget( doc, config ) {
// Parent constructor
ve.ui.MWTargetWidget.super.call( this, doc, config );
// Initialization
this.$element.addClass( 've-ui-mwTargetWidget' );
this.surface.getView().$element.addClass( 'mw-body-content' );
this.surface.$placeholder.addClass( 'mw-body-content' );
};
/* Inheritance */
OO.inheritClass( ve.ui.MWTargetWidget, ve.ui.TargetWidget );