ckeditorの設置

<script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
//スキンの変更['kama', 'office2003', v2]の3種
CKEDITOR.replace( 'detail',{skin : 'kama' });

CKEDITOR.config.width = '600px'; //横幅
CKEDITOR.config.height = '300px'; //高さ

//ユーザーのサイズ変更を許可するか
CKEDITOR.config.resize_enabled = false; 

//Enterキー押下時のタグ
CKEDITOR.config.enterMode = CKEDITOR.ENTER_P;

//Shift+Enter押下時のタグ
CKEDITOR.config.shiftEnterMode = CKEDITOR.ENTER_BR;
</script>

<textarea class="ckeditor" id="naiyo-ta" name="naiyo_text"><?php echo $blog&#91;'naiyo'&#93;; ?></textarea>

コメントを残す