CKEditor.replace不断给出错误

CKEditor.replace不断给出错误,ckeditor,joomla2.5,php-5.3,Ckeditor,Joomla2.5,Php 5.3,系统信息为:PHP版本-5.3.10-1ubuntu3.26;Web服务器:Apache/2.2.22(Ubuntu);Web服务器到PHP接口-apache2handler;乔姆拉版本!2.5.28稳定[余烬]2014年12月10日格林威治标准时间15:00;乔姆拉!平台版本Joomla平台11.4.0稳定。不过,我的: <script type='text/javascript'>CKEDITOR.replace( 'editor1' );</script> 涉及的

系统信息为:PHP版本-5.3.10-1ubuntu3.26;Web服务器:Apache/2.2.22(Ubuntu);Web服务器到PHP接口-apache2handler;乔姆拉版本!2.5.28稳定[余烬]2014年12月10日格林威治标准时间15:00;乔姆拉!平台版本Joomla平台11.4.0稳定。不过,我的:

<script type='text/javascript'>CKEDITOR.replace( 'editor1' );</script>
涉及的完整代码如下所示:

echo"<script type='text/javascript' src='https://fabrik.smartstartinc.net/ncpcphp/ckeditor/ckeditor.js'></script>";
echo"<div name='editor1' id='editor1' rows='10' cols='80'>replace this div with CKEditor.</div>";
echo"<script type='text/javascript'>CKEDITOR.replace( 'editor1' );</script>";
echo”“;
echo“用CKEditor替换此div。”;
echo“CKEDITOR.replace('editor1');”;

使用CKeditor[尝试多次,结果相同]:标准[4.0,4.5.11,4.6.2]和完整的4.6.2]。非常难办,错误依然存在。想法?

此代码可以位于html头部区域;或者在这里,我把它放在PHP脚本编写之前,一系列case stmts-让我看到了CKEditor出现在div区域上方的位置:

<script type='text/javascript'> window.CKEDITOR_BASEPATH ='https and domain URL here/ckeditor/';</script>
<script type='text/javascript' src='https and domain URL here/ckeditor/ckeditor.js'></script>
<script type='text/javascript' src='https and domain URL here/ckeditor/config.js'></script>
window.CKEDITOR_BASEPATH='https和域URL here/CKEDITOR/';
以及用于接受新CKEditor工具栏的现有div代码:

echo "<div id = '$val' class = 'DetailBox' style='display:none; height:415px'></div>";
echo”“;
最后是replace函数:

echo"<script type='text/javascript'>CKEDITOR.replace( '$val');</script>";
echo“CKEDITOR.replace('$val');”;
basepath语句是将所有内容组合在一起的最后一块

echo"<script type='text/javascript'>CKEDITOR.replace( '$val');</script>";