asp mvc サイトで YUI リッチ テキスト エディターを使用しようとしています。この JavaScript コードを使用しています。
var myEditor = new YAHOO.widget.Editor('Body', {
height: '300px',
width: '522px',
dompath: true, //Turns on the bar at the bottom
animate: true //Animates the opening, closing and moving of Editor windows
});
myEditor.render();
``
このテキストエリアで
<div class="yui-skin-sam">
@Html.TextAreaFor(model => model.Body, new { cols = "50", rows = 10 })
@Html.ValidationMessageFor(model => model.Body)
</div>
エディターがロードされますが、フォームを送信したときにその内容が渡されません。何も入力されていない場合はフィールドが必要であるという検証メッセージが表示され続けます。
これを私が望むように機能させる方法を知っている人はいますか?