mediawiki-extensions-Visual.../modules/ve2/ce/ve.ce.Document.js

20 lines
380 B
JavaScript
Raw Normal View History

/**
* ContentEditable document.
*
* @class
* @extends {ve.Document}
* @constructor
* @param model {ve.dm.Document} Model to observe
*/
ve.ce.Document = function( model ) {
// Inheritance
ve.Document.call( this, new ve.ce.DocumentNode( model.getDocumentNode() ) );
// Properties
this.model = model;
};
/* Inheritance */
ve.extendClass( ve.ce.Document, ve.Document );