mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
2f8b3e0d96
Change-Id: Ie92dab7411116d3410195c3fb0a3513c664c0c30
31 lines
782 B
JavaScript
31 lines
782 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MWSurfaceWidget class.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @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 );
|