|

楼主 |
发表于 2009-5-25 11:21:22
|
显示全部楼层
使用 JS 的方式装载 fck。然后在装载 fck 的 js 上使用绝对路径。用 PHP 代码生成此 js 代码即可。
Hex 发表于 2009-5-25 10:13 
刚才试过了,和iframe加载的方式是一样的。生成的javascript代码如下:
<script src="http://smartempo.vicp.net/jtmuseum/application/plugins/fckeditor/fckeditor.js" language="javascript" type="text/javascript"></script><script type="text/javascript">var oFCKeditor = new FCKeditor("large");oFCKeditor.BasePath="http://smartempo.vicp.net/jtmuseum/plugins/fckeditor/";oFCKeditor.Height=600;oFCKeditor.ToolbarSet="Default";oFCKeditor.Value="<p>房间是开发快乐撒加发看了撒加发了看见撒开了见了看法撒加看了gfdgd</p>";oFCKeditor.Create();</script> |
|