mediawiki-extensions-Visual.../modules/ve-mw/dm/ve.dm.MWWikitextSurface.js
Ed Sanders c452e134cc Wikitext surface alpha feature
Edit wikitext with the VE interace.

Bug: T104479
Bug: T142138
Change-Id: Ic95b47e0dd378578555c4a2342ca9c87064ed1d5
2016-08-12 18:37:29 +00:00

31 lines
728 B
JavaScript

/*!
* VisualEditor DataModel Surface class.
*
* @copyright 2011-2016 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 );
};