我的fck在根目录下,我调用fck的文件也在根目录下,代码如下:
<?php
include_once("editor/fckeditor.php");
$oFCKeditor=new fckeditor('content');
$oFCKeditor->BasePath='./editor/';
$oFCKeditor->Width='100%';
$oFCKeditor->Height='300px';
$oFCKeditor->ToolbarSet = 'Basic';
$oFCKeditor->create();
?>
运行后,显示出来的是样式图片
<?php
include_once("editor/fckeditor.php");
$oFCKeditor=new fckeditor('content');
$oFCKeditor->BasePath='./editor/';
$oFCKeditor->Width='100%';
$oFCKeditor->Height='300px';
$oFCKeditor->ToolbarSet = 'Basic';
$oFCKeditor->create();
?>
运行后,显示出来的是样式图片
可能是你的路径配置有问题
又或者下载的fckeditor有问题