http://wiki.fckeditor.net/Developer%27s_Guide/Integration/PHP中的If you want to retrieve the resulting HTML instead of outputting it directly to the browser (for example if you're using it in a template engine such as Smarty), you can call the "CreateHtml" method instead: $output = $oFCKeditor->CreateHtml() ;
你有仔细看过FCKEditor提供的范例吗?
1、你要用fckeditor编辑的内容通过$smarty->assign('content', $content)传递到模板
2、fckeditor编辑器放在当前被调用的php程序所在目录(注意不是模板文件所在的目录)的fckeditor目录下则模板只需这样写即可:
____________________________________________________________________________
<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>
__________________________________________________________________________
自己仔细研究一下很容易解决你这个问题的。这并不是一个很困难的任务。其实这里很多都是菜鸟级别的。
hsboy(PHP it!)
mrshelly(Shelly)
明白
真笨
只会在php上想