RawCommentTexts { get; set; }
}
}
+
diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml
index ab4bd69b91..9d0438098d 100644
--- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml
+++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml
@@ -49,6 +49,9 @@
}
+
+ @L["MarkdownSupported"]
+
;
@@ -57,16 +60,7 @@
Func GetCommentContentArea(Guid id, string text) =>
@;
}
@@ -114,9 +108,11 @@
+
+ @L["MarkdownSupported"]
+
@@ -161,7 +157,7 @@
- @GetEditArea(comment.Id, comment.Text, comment.ConcurrencyStamp).Invoke(null)
+ @GetEditArea(comment.Id, Model.RawCommentTexts[comment.Id], comment.ConcurrencyStamp).Invoke(null)
@if (comment.Replies.Any())
{
@@ -191,7 +187,7 @@
- @GetEditArea(reply.Id, reply.Text, reply.ConcurrencyStamp).Invoke(null)
+ @GetEditArea(reply.Id, Model.RawCommentTexts[reply.Id], reply.ConcurrencyStamp).Invoke(null)
}
@@ -220,4 +216,3 @@
}
-
\ No newline at end of file
- @{ - var lines = text.SplitToLines(); - if (lines.Any()) - { - foreach (var line in lines) - { - @line
- } - } - } + @Html.Raw(text)