Skip to content

Commit

Permalink
Adding new Enum based editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Dec 28, 2023
1 parent 1f669d7 commit 70a1f45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using OrchardCore.Data.Migration;
using OrchardCore.Markdown.Models;
using static Lombiq.HelpfulExtensions.Extensions.SiteTexts.Constants.ContentTypes;
using static Lombiq.HelpfulLibraries.OrchardCore.Contents.ContentFieldEditorEnums;

namespace Lombiq.HelpfulExtensions.Extensions.SiteTexts;

Expand All @@ -24,7 +25,7 @@ public int Create()
draftable: false,
listable: true,
versionable: false)
.WithPart(nameof(MarkdownBodyPart), part => part.WithEditor("Wysiwyg"))
.WithPart(nameof(MarkdownBodyPart), part => part.WithEditor(HtmlFieldEditors.Wysiwyg))
.WithPart(nameof(LocalizationPart)));

return 1;
Expand Down

0 comments on commit 70a1f45

Please sign in to comment.