瀏覽代碼

hardcode html content into editor

Benoît Hubert 8 年之前
父節點
當前提交
08ac8bb4bf
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      html/index.mustache.html
  2. 2 1
      sandboxApp.js

+ 1 - 1
html/index.mustache.html

@@ -55,7 +55,7 @@
             {{/css}}
             </ul>
         </div>
-        <div id="editor"></div>
+        <div id="editor">{{{mainHtml}}}</div>
         <script type="text/html" id="editor-javascript"></script>
         <script type="text/html" id="editor-html"></script>
         <script type="text/html" id="editor-css"></script>

+ 2 - 1
sandboxApp.js

@@ -131,7 +131,8 @@ app.get('/:repoSlug/:exampleSlug',
         menuExample,
         html,
         js,
-        css
+        css,
+        mainHtml: html[0].content
       }));
     });
 });