Added ve.dm.Surface, ve.ce.Surface, ve.ce.Document

Change-Id: I382730e1a9f1abcb4b42499267c8dcaf76fc64e1
This commit is contained in:
Trevor Parscal 2012-05-03 13:21:13 -07:00
parent 8518e1cc1d
commit 7b7ff5a503
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,12 @@
/**
* ContentEditable document.
*
* @class
* @constructor
* @param model {ve.dm.Document} Model to observe
*/
ve.ce.Document = function( model ) {
// Properties
this.documentModel = model;
this.documentNode = new ve.ce.DocumentNode( model.getDocumentNode() );
};

View file

@ -0,0 +1,12 @@
/**
* ContentEditable surface.
*
* @class
* @constructor
* @param model {ve.dm.Surface} Model to observe
*/
ve.ce.Surface = function( model ) {
// Properties
this.surfaceModel = model;
this.documentView = new ve.ce.Document( model.getDocument() );
};

View file

@ -0,0 +1,11 @@
/**
* DataModel surface.
*
* @class
* @constructor
* @param {ve.dm.Document} doc Document model to create surface for
*/
ve.dm.Surface = function( doc ) {
// Properties
this.documentModel = doc;
};