2011 年 1 月 20 日
Yahoo YUIでWYSIWYG
Yahoo YUI2の Rich Text Editorを試しに導入してみましたのでメモします。
まず以下を読み込みます。
次に設定をしてレンダリングします。
var myEditor = new YAHOO.widget.Editor('#ID名', { height: '300px', width: '75%', dompath: true, animate: true, handleSubmit:true }); myEditor.render();
その後、bodyタグにクラスを入れました。
<body class="yui-skin-sam">
以上です。
最初、POSTしたときに行きませんでしたが
configulationでhandleSubmit:trueを記述するといけました。