2014-10-15 23:56:44 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWSurfaceWidget class.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2014-10-15 23:56:44 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates an ve.ui.MWSurfaceWidget object.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @abstract
|
|
|
|
* @extends ve.ui.SurfaceWidget
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.dm.Document} doc Document model
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWSurfaceWidget = function VeUiMWSurfaceWidget( doc, config ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ui.MWSurfaceWidget.super.call( this, doc, config );
|
|
|
|
|
|
|
|
// Initialization
|
|
|
|
this.$element.addClass( 've-ui-mwSurfaceWidget' );
|
|
|
|
this.surface.getView().$element.addClass( 'mw-body-content' );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ui.MWSurfaceWidget, ve.ui.SurfaceWidget );
|