|
发表于 2008-6-20 16:20:33
|
显示全部楼层
我用js调用没出现你这种情况
添加:
<script type="text/javascript" src="<?=base_url()?>fck/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var fck = new FCKeditor( 'content' ) ;
fck.BasePath = "<?=base_url()?>/fck/" ;
fck.ReplaceTextarea() ;
}
</script>
<?=form_open('admin/news/newsadd')?>
</div><textarea id="content" name="content" cols="80" rows="10"></textarea><div>
修改:
<script type="text/javascript" src="<?=base_url()?>fck/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var fck = new FCKeditor( 'content' ) ;
fck.BasePath = "<?=base_url()?>/fck/" ;
fck.ReplaceTextarea() ;
}
</script>
<?=form_open("admin/news/news_modi/$news[id]/$news[cid]")?>
<div>内容</div><div>
</div><textarea id="content" name="content" cols="80" rows="10"><?=$contents?></textarea><div> |
|