From: Aleksander Ɓukasz Date: Mon, 9 Dec 2013 08:48:40 +0000 (+0100) Subject: editor: fix missing passing of canvas object reference X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/5b8c5ec57dcfd98cf14f98b54f84e6bb55dec23d editor: fix missing passing of canvas object reference --- diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js index 9fe3641..e553336 100644 --- a/src/editor/modules/documentCanvas/canvas/documentElement.js +++ b/src/editor/modules/documentCanvas/canvas/documentElement.js @@ -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) {