Created
May 14, 2013 10:17
-
-
Save Maarten88/5574998 to your computer and use it in GitHub Desktop.
EditorTemplate for Markdown field using MarkDownDeep.NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model object | |
<link rel="stylesheet" type="text/css" href="/Scripts/mdd_styles.css" /> | |
<div class="control-group@(Html.ValidationErrorFor(m => m, " error"))"> | |
@Html.LabelFor(m => m, new { @class = "control-label" }) | |
<div class="mdd_toolbar"></div> | |
@Html.TextAreaFor( | |
m => m, | |
8, 15, | |
ViewBag.ClearTextField == true ? new { @class = "mdd_editor clear-text-field" } : new { @class = "mdd_editor" } ) | |
@Html.ValidationMessageFor(m => m, null, new { @class = "help-inline" }) | |
<br /> | |
<label>Preview</label> | |
<hr /> | |
<div class="mdd_preview"></div> | |
<hr /> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment