From d9beb609058bc84bc3c69cdc527ba64e71796d43 Mon Sep 17 00:00:00 2001 From: Farzin Date: Wed, 7 Apr 2021 02:57:30 +0430 Subject: [PATCH] #267 - Editor part 3 --- src/Blogifier.Admin/Pages/Blog/Editor.razor | 2 +- src/Blogifier.Admin/Pages/Pages/Editor.razor | 154 ++++++++----------- 2 files changed, 66 insertions(+), 90 deletions(-) diff --git a/src/Blogifier.Admin/Pages/Blog/Editor.razor b/src/Blogifier.Admin/Pages/Blog/Editor.razor index 89a8be43a..dabb3321f 100644 --- a/src/Blogifier.Admin/Pages/Blog/Editor.razor +++ b/src/Blogifier.Admin/Pages/Blog/Editor.razor @@ -58,7 +58,7 @@
- +
diff --git a/src/Blogifier.Admin/Pages/Pages/Editor.razor b/src/Blogifier.Admin/Pages/Pages/Editor.razor index 979617e13..f2d2d6a55 100644 --- a/src/Blogifier.Admin/Pages/Pages/Editor.razor +++ b/src/Blogifier.Admin/Pages/Pages/Editor.razor @@ -10,102 +10,78 @@
@if (Post != null) { -
-
- - -
-
-
- @if (Post.Id > 0) - { - - } - @if (Post.Id == 0) - { - - - } - else - { - if (Post.Published > DateTime.MinValue) - { - - - + +
+
+ Cover +
+ + +
+ -
-
- - - -
- -
- - - }
@@ -143,7 +119,7 @@ Post.Content = await _jsruntime.InvokeAsync("commonJsFunctions.getEditorValue", ""); Post.PostType = PostType.Page; - Post.Cover = await _jsruntime.InvokeAsync("commonJsFunctions.getTxtValue", "post-cover-txt"); + Post.Cover = await _jsruntime.InvokeAsync("commonJsFunctions.getTxtValue", "post-cover"); if(string.IsNullOrEmpty(Post.Cover)) Post.Cover = Constants.DefaultCover;