本文介绍了你如何存储在ASP.NET中使用大规模杀伤性武器的降价?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了大规模杀伤性武器控制堆栈溢出使用到我的一个项目,它的几乎用得好好的,但是当我将更改保存到数据库,它保存的HTML版本,而不是降价的版本。

I have implemented the WMD control that Stack Overflow uses into a project of mine, it almost works like a charm, but when I save the changes to the database it is saving the HTML version and not the Markdown version.

那么,我有这个在我的文本框:

So where I have this in my text box:

**boldtext**

这实在是保存此:

It is really saving this:

<b>boldtext</b>

我如何把它存降价的版本?

How do I make it save the Markdown version?

推荐答案

在您包括 wmd.js ,或任何你已经命名了大规模杀伤性武器的JavaScript编辑器$ C $ ç局部,添加JavaScript code的一行:

Before you include wmd.js, or whatever you've named the WMD editor JavaScript code locally, add one line of JavaScript code:

wmd_options = {"output": "Markdown"};

这将迫使编辑器降价的输出。

This will force the output of the editor to Markdown.

这篇关于你如何存储在ASP.NET中使用大规模杀伤性武器的降价?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 18:32
查看更多