integration wip: sync canvas text editing with wlxml document instance
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / canvas.js
index 830db75..ed24cee 100644 (file)
@@ -63,6 +63,9 @@ $.extend(Canvas.prototype, {
                     }
                     observer.observe(canvas.d[0], config);
                     canvas.publisher('contentChanged');
+
+                    var textElement = canvas.getDocumentElement(mutation.target);
+                    textElement.data('wlxmlNode').setText(mutation.target.data);
                 }
             });
         });