2012-06-16 163 views

回答

1

基於文檔元素的ID是很重要的:

輸入文本區域

This is where you'll enter markdown. id is "wmd-input". 

但隨着你的代碼:

@Html.TextArea("Contents", string.Empty, new 
      { 
       @class = "wmd-input" 
      }) 

你設置類的textare不是id。試試這個:

@Html.TextArea("Contents", string.Empty, new 
      { 
       id = "wmd-input" 
      })