Procházet zdrojové kódy

more btn styles and set html content

Benoît Hubert před 8 roky
rodič
revize
b80b03b6d9
2 změnil soubory, kde provedl 21 přidání a 1 odebrání
  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');
         }