From 16da9932e106134c310bd943aa1c6244ac0b9530 Mon Sep 17 00:00:00 2001 From: BaoLe106 Date: Thu, 21 Sep 2023 01:46:00 +0800 Subject: [PATCH] markdown_editor ver2 --- .../markdown_editor/markdown_editor.html | 119 ++++++++++++++++-- 1 file changed, 107 insertions(+), 12 deletions(-) diff --git a/templates/markdown_editor/markdown_editor.html b/templates/markdown_editor/markdown_editor.html index 7da7924..b07668a 100644 --- a/templates/markdown_editor/markdown_editor.html +++ b/templates/markdown_editor/markdown_editor.html @@ -5,20 +5,38 @@ main { overflow: hidden; } + .form-area { + float: left; + width: 47%; + /* height: 604px; */ + /* background-color: #acabab; */ + /* padding: 20px; */ + } .left-markdown{ float: left; width: 47%; - height: 620px; + height: 50%; + /* flex: 1; */ /* background-color: #acabab; */ padding: 20px; } - .right-markdown{ + .wmd-preview{ float: right; - width: 47%; - height: 620px; - background-color: #6b6b6b; + margin-top: 0; + } + .width-controller{ + width: 51%; + /* flex: 1; */ + } + .right-markdown{ + /* float: right; */ + /* width: 51%; */ + height: 427px; + /* flex: 1; */ + /* background-color: #6b6b6b; */ + overflow-y: scroll; /* #f0f0f0; */ - padding: 20px; + /* padding: 20px; */ } {% endblock %} @@ -26,7 +44,7 @@ {% block body %} -
-
- {% csrf_token %} - + +
+ + + +
+
+
+
    +
  • +
  • +
  • +
  • +
  • +
  • + +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+ +
+
+
Update Preview
+
+
+
+

Insert Image

+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
-
+ + + + +
+
+ +
+ + {% endblock %}