mediawiki-extensions-Visual.../modules/ve-mw/dm/ve.dm.MWWikitextSurface.js
James D. Forrester 0a7a845a42 doc: Bump copyright year
Change-Id: I0b299c840ede1a1b8552cecfc70c5760ab036181
2018-01-03 17:45:07 +00:00

31 lines
728 B
JavaScript

/*!
* VisualEditor DataModel Surface class.
*
* @copyright 2011-2018 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* DataModel surface.
*
* @class
* @extends ve.dm.Surface
*
* @constructor
* @param {ve.dm.Document} doc
*/
ve.dm.MWWikitextSurface = function VeDmMwWikitextSurface() {
// Parent constructors
ve.dm.MWWikitextSurface.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.dm.MWWikitextSurface, ve.dm.Surface );
/**
* @inheritdoc
*/
ve.dm.MWWikitextSurface.prototype.getFragment = function ( selection, noAutoSelect, excludeInsertions ) {
return new ve.dm.MWWikitextSurfaceFragment( this, selection || this.selection, noAutoSelect, excludeInsertions );
};