mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
6224c60075
Change-Id: I8789860fe82f2e7db1e503889e20ce51de57bfa2
15 lines
369 B
JavaScript
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();
|
|
};
|