Explorar el Código

more btn styles and set html content

Benoît Hubert hace 8 años
padre
commit
b80b03b6d9
Se han modificado 2 ficheros con 21 adiciones y 1 borrados
  1. 19 0
      css/styles.css
  2. 2 1
      js/editor.js

+ 19 - 0
css/styles.css

@@ -210,4 +210,23 @@ button.rounded {
 a.active {
   font-weight: bold;
   color: #48c;
+}
+.cyan {
+  background: #6ff;
+}
+.magenta {
+  background: #f6f;
+}
+.yellow {
+  background: #ff6;
+  color: #444;
+}
+.orange {
+  background: #eb6;
+}
+.bold-text {
+  font-weight: bold;
+}
+.underlined-text {
+  text-decoration: underline;
 }

+ 2 - 1
js/editor.js

@@ -142,8 +142,9 @@ $(document).ready(function() {
           loadExample(item.slug);
         }
         else {
-          // console.log('I did restore');
+          // console.log('I did restore', restoredDraft);
           $editorHtml.html(restoredDraft.sources.html);
+          $htmlContent.html(restoredDraft.sources.html);
           $editorJs.html(restoredDraft.sources.javascript);
           setActiveTab('html');
         }