wip: extracting core cont'd - seems to be working
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / canvas.js
index ae75d61..01cb14e 100644 (file)
@@ -13,7 +13,7 @@ define([
 var TextHandler = function(canvas) {this.canvas = canvas; this.buffer = null};
 $.extend(TextHandler.prototype, {
     handle: function(node, text) {
-        console.log('canvas text handler: ' + text);
+        //console.log('canvas text handler: ' + text);
         this.setText(text, node);
         return;
         if(!this.node) {
@@ -39,7 +39,7 @@ $.extend(TextHandler.prototype, {
     },
     setText: function(text, node) {
         //this.canvas.wlxmlDocument.transform('setText', {node:node, text: text});
-        node.transform('smartxml.setText', {text: text});
+        node.setText(text);
 
     }