From 2eeacc82afeed21114a35b91fcaa88db89523153 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 10 Oct 2013 12:34:56 +0200 Subject: [PATCH 1/1] fix --- src/editor/modules/documentCanvas/canvas/canvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/modules/documentCanvas/canvas/canvas.js b/src/editor/modules/documentCanvas/canvas/canvas.js index 8c2e2e1..c0eeaf0 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.js @@ -11,6 +11,7 @@ define([ var Canvas = function(wlxmlDocument, publisher) { this.eventBus = _.extend({}, Backbone.Events); + this.wrapper = $('
').addClass('canvas-wrapper').attr('contenteditable', true); this.loadWlxmlDocument(wlxmlDocument); this.publisher = publisher ? publisher : function() {}; }; @@ -23,7 +24,7 @@ $.extend(Canvas.prototype, { } var canvasDOM = this.generateCanvasDOM(wlxmlDocument.root); - this.wrapper = $('
').addClass('canvas-wrapper').attr('contenteditable', true); + this.wrapper.empty(); this.wrapper.append(canvasDOM); this.d = this.wrapper.children(0); this.setupEventHandling(); -- 2.20.1