Browse Source

Removed the missed hard-coded

pull/13082/head
malik masis 4 years ago
parent
commit
e5d0521e2a
  1. 1
      modules/cms-kit/src/Volo.CmsKit.Common.Application.Contracts/Volo/CmsKit/Contents/ContentConsts.cs
  2. 4
      modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentParser.cs

1
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";
}

4
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<ContentFragment>
{
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]));
}
}
}

Loading…
Cancel
Save