From: Aleksander Ɓukasz Date: Thu, 1 Aug 2013 10:45:37 +0000 (+0200) Subject: Refactorization X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/25436cdfcd36e309bfdf99f858b66d15e3af3864?ds=sidebyside;hp=ab1a529433f11e19769abf9bb1aa2c8c3194abeb Refactorization --- 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