editor: refactoring - remove old unnecessary markup
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 26 May 2014 10:46:40 +0000 (12:46 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 28 May 2014 12:45:58 +0000 (14:45 +0200)
src/editor/modules/documentCanvas/documentCanvas.js
src/editor/modules/documentCanvas/documentCanvas.less
src/editor/modules/documentCanvas/template.html

index 8742aef..651788e 100644 (file)
@@ -70,7 +70,7 @@ return function(sandbox) {
         },
         setDocument: function(wlxmlDocument) {
             canvas.loadWlxmlDocument(wlxmlDocument);
-            canvasWrapper.find('#rng-module-documentCanvas-content').empty().append(canvas.view());
+            canvasWrapper.find('#rng-module-documentCanvas-contentWrapper').empty().append(canvas.view());
         },
         highlightElement: function(node) {
             canvas.toggleElementHighlight(node, true);
index f2e714f..d1042c2 100644 (file)
@@ -8,11 +8,6 @@
    height: 100%;
 }
 
-#rng-module-documentCanvas-mainArea {
-   height: 100%;
-   margin-bottom: 20px;
-}
-
 #rng-module-documentCanvas-contentWrapper {
     border-color: #ddd;
     border-style: solid;
index 63dc331..7a32c16 100644 (file)
@@ -1,7 +1,4 @@
 <div id="rng-module-documentCanvas">
-    <div id="rng-module-documentCanvas-mainArea">
-        <div id="rng-module-documentCanvas-contentWrapper">
-            <div id="rng-module-documentCanvas-content"></div>
-        </div>
+    <div id="rng-module-documentCanvas-contentWrapper">
     </div>
 </div>
\ No newline at end of file