From 25436cdfcd36e309bfdf99f858b66d15e3af3864 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 1 Aug 2013 12:45:37 +0200 Subject: [PATCH 1/1] Refactorization --- modules/documentCanvas/canvas/documentElement.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/documentCanvas/canvas/documentElement.js b/modules/documentCanvas/canvas/documentElement.js index d923787..2b42a22 100644 --- a/modules/documentCanvas/canvas/documentElement.js +++ b/modules/documentCanvas/canvas/documentElement.js @@ -123,9 +123,13 @@ var getDisplayStyle = function(tag, klass) { $.extend(DocumentNodeElement, { createDOM: function(params) { - var dom = $('
'), - widgetsContainer = $('
'), - container = $('
'); + var dom = $('
') + .attr('document-node-element', ''), + widgetsContainer = $('
') + .addClass('canvas-widgets') + .attr('contenteditable', false), + container = $('
') + .attr('document-element-content', ''); dom.append(widgetsContainer, container); // Make sure widgets aren't navigable with arrow keys -- 2.20.1