canvas: data method extracted to DocumentElement for exposure in DocumentTextElement
[fnpeditor.git] / src / editor / modules / rng / rng.js
index 6b10293..59652a7 100644 (file)
@@ -190,7 +190,7 @@ return function(sandbox) {
     
     eventHandlers.documentCanvas = {
         ready: function() {
-            sandbox.getModule('documentCanvas').setDocument2(sandbox.getModule('data').getDocument2());
+            sandbox.getModule('documentCanvas').setDocument(sandbox.getModule('data').getDocument());
             views.visualEditing.setView('leftColumn', sandbox.getModule('documentCanvas').getView());
         },
         documentSet: function() {