欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

FCKeditor smarty 編輯器的應(yīng)用PHP

 更新時間:2012年07月05日 17:25:37   作者:  
自己仔細(xì)研究一下很容易解決你這個問題的。這并不是一個很困難的任務(wù)。其實這里很多都是菜鳥級別的
感謝csdn社區(qū) hsboy用戶的帖子

原文:

6 樓hsboy(PHP it!)回復(fù)于 2006-03-05 18:44:07 得分60

假設(shè)
1、你要用fckeditor編輯的內(nèi)容通過$smarty->assign('content', $content)傳遞到模板
2、fckeditor編輯器放在當(dāng)前被調(diào)用的php程序所在目錄(注意不是模板文件所在的目錄)的fckeditor目錄下

則模板只需這樣寫即可:
復(fù)制代碼 代碼如下:

<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<form method="POST">
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'content' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '{ $content }' ;
oFCKeditor.Create() ;
</script>
</form>

自己仔細(xì)研究一下很容易解決你這個問題的。這并不是一個很困難的任務(wù)。其實這里很多都是菜鳥級別的。

相關(guān)文章

最新評論