+ return view;\r
+ },\r
+ setDocument: function(xml) {\r
+ var transformed = transformations.fromXML.getDocumentDescription(xml);\r
+ $('#rng-visualEditor-content', view).html(transformed.HTMLTree);\r
+ isDirty = false;\r
+ },\r
+ getDocument: function() {\r
+ return transformations.toXML.getXML({HTMLTree: $('#rng-visualEditor-content').text(), metadata: {}});\r
+ },\r
+ isDirty: function() {\r
+ return isDirty;\r
+ },\r
+ setDirty: function(dirty) {\r
+ isDirty = dirty;\r