From 5409fec0e1a84c93577165dd35777889dfc3a60a Mon Sep 17 00:00:00 2001 From: BaoLe106 Date: Wed, 27 Sep 2023 20:27:50 +0800 Subject: [PATCH] markdown editor final ver --- .../markdown_editor/markdown_editor.html | 75 ++++++++----------- 1 file changed, 31 insertions(+), 44 deletions(-) diff --git a/templates/markdown_editor/markdown_editor.html b/templates/markdown_editor/markdown_editor.html index f1375a8..b62f71f 100644 --- a/templates/markdown_editor/markdown_editor.html +++ b/templates/markdown_editor/markdown_editor.html @@ -5,20 +5,17 @@ main { overflow: hidden; } + #content { + width: 100%; + } + #content.wrapper { + padding: 0; + } .form-area { float: left; width: 47%; - /* height: 604px; */ - /* background-color: #acabab; */ - /* padding: 20px; */ - } - .left-markdown{ - float: left; - width: 47%; - height: 50%; - /* flex: 1; */ - /* background-color: #acabab; */ - padding: 20px; + height: 100% + } .wmd-preview{ float: right; @@ -26,17 +23,13 @@ } .width-controller{ width: 51%; - /* flex: 1; */ + } + .wmd-input { + height: 678px; } .right-markdown{ - /* float: right; */ - /* width: 51%; */ - height: 427px; - /* flex: 1; */ - /* background-color: #6b6b6b; */ + height: 725px; overflow-y: scroll; - /* #f0f0f0; */ - /* padding: 20px; */ } {% endblock %} @@ -57,7 +50,6 @@ }, success: function(data) { $('#display').html(data) - // data sẽ là html nó render, thế vào phần bên phải }, error: function(error) { alert(error); @@ -68,6 +60,21 @@ }); + + @@ -77,21 +84,16 @@ - -
+
- + +
- +
Update Preview
@@ -119,25 +121,10 @@
-
-
- - - -
-
- - {% endblock %}