Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/dm/ve.dm.MWWikitextSurface.js

raw symbols SCIP
1 /*!
2 * VisualEditor DataModel Surface class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * DataModel surface.
9 *
10 * @class
11 * @extends ve.dm.Surface
12 *
13 * @constructor
14 * @param {ve.dm.Document} doc
15 * @param {Object} [config]
16 */
17 ve.dm.MWWikitextSurface = function VeDmMwWikitextSurface( doc, config ) {
18 // Parent constructors
19 ve.dm.MWWikitextSurface.super.call( this, doc, ve.extendObject( config, { sourceMode: true } ) );
20 };
21
22 /* Inheritance */
23
24 OO.inheritClass( ve.dm.MWWikitextSurface, ve.dm.Surface );
25
26 /**
27 * @inheritdoc
28 */
29 ve.dm.MWWikitextSurface.prototype.getFragment = function ( selection, noAutoSelect, excludeInsertions ) {
30 return new ve.dm.MWWikitextSurfaceFragment( this, selection || this.selection, noAutoSelect, excludeInsertions );
31 };