I'm running into an issue when I am saving the context of textarea using the wmd-editor it keeps wanting to save it as html. I have the following code:
The input elements...
<p>
<%= this.Html.TextArea("Body", topic.Body, new { @class = "big" })%>
</p>
The script to make the out put markdown...
<script type="text/javascript">
wmd_options = {
output: "Markdown"
};
</script>
The controller code...
[Authorize]
[ValidateInput(false)]
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(FormCollection collection)
{
var topic = WikiService.TopicNew();
topic.Name = collection["Name"];
topic.Body = collection["Body"];
// Just saving the contents
}
Am I missing something? Any idea why it would not return the markdown version of the textarea?