From a421b30397eaa30b23a389cc9018ad29bf987a28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 24 Oct 2013 11:32:09 +0200 Subject: [PATCH] integration wip: sync canvas text editing with wlxml document instance --- src/editor/modules/documentCanvas/canvas/canvas.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor/modules/documentCanvas/canvas/canvas.js b/src/editor/modules/documentCanvas/canvas/canvas.js index 830db75..ed24cee 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.js @@ -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); } }); }); -- 2.20.1