editor: fix missing passing of canvas object reference
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 9 Dec 2013 08:48:40 +0000 (09:48 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 15 Dec 2013 21:32:49 +0000 (22:32 +0100)
src/editor/modules/documentCanvas/canvas/documentElement.js

index 9fe3641..e553336 100644 (file)
@@ -349,7 +349,7 @@ $.extend(DocumentTextElement, {
     },
 
     create: function(wlxmlTextNode, canvas) {
-        return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0]);
+        return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0], canvas);
     },
 
     fromHTMLElement: function(htmlElement, canvas) {