-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathEditTeaserMarkdownPartial.cshtml
More file actions
31 lines (29 loc) · 1.6 KB
/
EditTeaserMarkdownPartial.cshtml
File metadata and controls
31 lines (29 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@model cloudscribe.SimpleContent.Web.ViewModels.PostEditViewModel
@inject ISummernoteOptionsResolver summernoteOptionsResolver
@inject ICkeditorOptionsResolver editorOptionsResolver
@inject IStringLocalizer<SimpleContent> sr
@{
var summernoteOptions = await summernoteOptionsResolver.GetSummernoteOptions();
var ckOptions = await editorOptionsResolver.GetCkeditorOptions();
var contentId = Model.Id + "-teaser";
if (string.IsNullOrWhiteSpace(contentId)) { contentId = "draft-post-teaser-" + DateTime.UtcNow.ToString("yyyy-MM-dd-hh"); }
}
<div class="mb-3">
<label asp-for="TeaserOverride">@sr["Teaser Override"]</label>
<textarea asp-for="TeaserOverride" class="form-control" rows="7" cols="70"
data-markdown-unobtrusive=""
data-markdown-autosave="true"
data-markdown-contentid="@contentId"
data-markdown-forceSync="true"
data-markdown-indentWithTabs="true"
data-markdown-spellChecker="true"
data-markdown-filemodalid="#fileBrowseDialog"
data-markdown-filebrowseurl="/filemanager/filedialog"
data-markdown-dropfileuploadurl="@summernoteOptions.DropFileUrl"></textarea>
</div>
<div class="mb-3">
<div class="form-check" data-bs-toggle="tooltip" data-placement="left" title='@sr["If checked, then show entire blog post on index/listing pages regardless of teaser settings."]'>
<input asp-for="SuppressTeaser" class="form-check-input" />
<label asp-for="SuppressTeaser" class="form-check-label">@sr["No teaser, use full post"]</label>
</div>
</div>