mediawiki-extensions-Visual.../modules/ve-mw/ui/elements/ve.ui.MWPreviewElement.js
James D. Forrester 122f49b2dd build: Bump file copyright notices for 2017
Change-Id: I3c20809e71cc0da58123e1b5f29c4f3aac945496
2017-01-03 08:58:33 -08:00

29 lines
675 B
JavaScript

/*!
* VisualEditor UserInterface MWPreviewElement class.
*
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Creates an ve.ui.MWPreviewElement object.
*
* @class
* @extends ve.ui.PreviewElement
*
* @constructor
* @param {ve.dm.Node} [model]
* @param {Object} [config]
*/
ve.ui.MWPreviewElement = function VeUiMwPreviewElement() {
// Parent constructor
ve.ui.MWPreviewElement.super.apply( this, arguments );
// Initialize
this.$element.addClass( 've-ui-mwPreviewElement mw-body-content' );
};
/* Inheritance */
OO.inheritClass( ve.ui.MWPreviewElement, ve.ui.PreviewElement );