mediawiki-extensions-Visual.../modules/ve-mw/ui/widgets/ve.ui.MWTargetWidget.js
Ed Sanders bb46c34255 Update VE core submodule to master (edaa19b)
New changes:
aab2e90 Localisation updates from https://translatewiki.net.
826055a [BREAKING CHANGE] Rename SurfaceWidget to TargetWidget

Local changes:
* [PULL THROUGH] Rename MWSurfaceWidget to MWTargetWidget

Bug: T94066
Change-Id: If578e15c1ee7effd5ca1d6073521a6c59caac255
2015-07-18 17:19:05 -05:00

32 lines
831 B
JavaScript

/*!
* VisualEditor UserInterface MWTargetWidget class.
*
* @copyright 2011-2015 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 );