<div class="rl_list">
<span class="spanleft">内容</span>
<div class="rl_biginput" style="height: auto; width: 500px;">
<fck:editor id="content" basePath="${pageContext.request.contextPath}/fckeditor/"
customConfigurationsPath="${pageContext.request.contextPath}/fckeditor/myconfig.js"
toolbarSet="Customer" width="100%" height="400">
</fck:editor>
</div>
</div>
我的javascript代码var fCKeditorContent =fckeditorapi.GetInstance("content").GetXHTML(true);
alert(fCKeditorContent);
程序报出fckeditorapi未定义的错误!
<span class="spanleft">内容</span>
<div class="rl_biginput" style="height: auto; width: 500px;">
<fck:editor id="content" basePath="${pageContext.request.contextPath}/fckeditor/"
customConfigurationsPath="${pageContext.request.contextPath}/fckeditor/myconfig.js"
toolbarSet="Customer" width="100%" height="400">
</fck:editor>
</div>
</div>
我的javascript代码var fCKeditorContent =fckeditorapi.GetInstance("content").GetXHTML(true);
alert(fCKeditorContent);
程序报出fckeditorapi未定义的错误!
//判断fck的内容是否为空
var oEditor = FCKeditorAPI.GetInstance('content'); //这里的content是FCK的ID值
if(GetLength("content")<=0) {
alert('内容不能为空!');
oEditor.Focus();
return false;
}