mediawiki-extensions-Visual.../modules/ve2/ce/ve.ce.Surface.js
Inez Korczynski bab1a9672c Fix method getDocument in dm.Surface and start using it
Change-Id: I613b1e938cd0d8f3a6ac8a48121901287c8fc5af
2012-05-04 15:20:14 -07:00

24 lines
477 B
JavaScript

/**
* ContentEditable surface.
*
* @class
* @constructor
* @param model {ve.dm.Surface} Model to observe
*/
ve.ce.Surface = function( $container, model ) {
// Inheritance
ve.EventEmitter.call( this );
// Properties
this.model = model;
this.documentView = new ve.ce.Document( model.getDocument() );
this.$ = $container;
// Initialization
this.$.append( this.documentView.documentNode.$ );
};
/* Inheritance */
ve.extendClass( ve.ce.Surface, ve.EventEmitter );