diff --git a/modules/cms-kit/src/Volo.CmsKit.Common.Application.Contracts/Volo/CmsKit/Contents/ContentConsts.cs b/modules/cms-kit/src/Volo.CmsKit.Common.Application.Contracts/Volo/CmsKit/Contents/ContentConsts.cs index bf58fb8f99..8caaa7a03a 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Common.Application.Contracts/Volo/CmsKit/Contents/ContentConsts.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Common.Application.Contracts/Volo/CmsKit/Contents/ContentConsts.cs @@ -4,4 +4,5 @@ public static class ContentConsts public static string Delimeter { get; set; } = "----"; public static string Widget { get; set; } = "Widget"; public static string Markdown { get; set; } = "Markdown"; + public static string Content { get; set; } = "Content"; } diff --git a/modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentParser.cs b/modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentParser.cs index 369f6aef84..b5716be9df 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentParser.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentParser.cs @@ -24,7 +24,7 @@ public class ContentParser : ITransientDependency { return Task.FromResult(new List { - new ContentFragment() { Type = "Markdown" }.SetProperty("Content", content), + new ContentFragment() { Type = Markdown }.SetProperty(Content, content), }); } @@ -113,7 +113,7 @@ public class ContentParser : ITransientDependency else { contentFragments.Add(new ContentFragment() { Type = Markdown } - .SetProperty("Content", parsedList[i])); + .SetProperty(Content, parsedList[i])); } } }