mediawiki-extensions-Visual.../modules/ve2/ce/ve.ce.Surface.js
Inez Korczynski 6224c60075 Rendering works in very basic version
Change-Id: I8789860fe82f2e7db1e503889e20ce51de57bfa2
2012-05-03 14:02:35 -07:00

15 lines
369 B
JavaScript

/**
* ContentEditable surface.
*
* @class
* @constructor
* @param model {ve.dm.Surface} Model to observe
*/
ve.ce.Surface = function( $container, model ) {
// Properties
this.surfaceModel = model;
this.documentView = new ve.ce.Document( model.documentModel );
$container.append(this.documentView.documentNode.$);
this.documentView.documentNode.render();
};