默认情况下,wmd 将抓取第一个文本区域。如果您希望 WMD 忽略文本区域,您可以将类 'wmd-ignore' 添加到标签中。
例如:
<form>
<textarea class="exampleOne wmd-ignore" ></textarea>
<textarea class="exampleTwo wmd-ignore" ></textarea>
<textarea class="exampleThree" ></textarea>
</form>
<div class="wmd-preview"></div>
来自 WMD 自述文件:
Special class names
-------------------
You can use the following class names to control WMD's auto-start behavior:
`wmd-ignore` - Add to a textarea to prevent WMD from turning it into an editor.
`wmd-preview` - Add to a div to turn show a live preview.
`wmd-output` - Add to a textarea or div to turn show the HTML output.