如何设置ASP.NET,使WMD-Editor编辑的内容不自动发布为HTML?
- 内容介绍
- 文章标签
- 相关推荐
本文共计235个文字,预计阅读时间需要1分钟。
我注意到这段代码是HTML的一部分,用于创建一个表单,以下是简化后的内容,不超过100字:
<form action="/u" method="post"> <div class="reply"> <input type="hidden" name="type" value="2"/> <input type="hidden" name="id" value="1"/> <input type="hidden" name="parentId" value="0"/> <textarea name="text" style="width: 500px; height: 200px;"></textarea><div class="rhs"><button>Post Comment</button></div></div> </form>
似乎我不需要编辑器的名称工作,但我需要使用名称,所以我可以发布数据.问题是我没有得到用户输入的文本数据,而是从markdown编辑器生成的html.我如何设置它,以便我得到用户键入的正常原始html?
将输出选项从HTML更改为markdown.它看起来像:
Attacklab.wmd_defaults = { version: 1, output: "markdown", lineLength: 40, delayLoad: false };
本文共计235个文字,预计阅读时间需要1分钟。
我注意到这段代码是HTML的一部分,用于创建一个表单,以下是简化后的内容,不超过100字:
<form action="/u" method="post"> <div class="reply"> <input type="hidden" name="type" value="2"/> <input type="hidden" name="id" value="1"/> <input type="hidden" name="parentId" value="0"/> <textarea name="text" style="width: 500px; height: 200px;"></textarea><div class="rhs"><button>Post Comment</button></div></div> </form>
似乎我不需要编辑器的名称工作,但我需要使用名称,所以我可以发布数据.问题是我没有得到用户输入的文本数据,而是从markdown编辑器生成的html.我如何设置它,以便我得到用户键入的正常原始html?
将输出选项从HTML更改为markdown.它看起来像:
Attacklab.wmd_defaults = { version: 1, output: "markdown", lineLength: 40, delayLoad: false };

