请教一个FCKeditor 2.0的问题

来源:百度知道 编辑:UC知道 时间:2024/06/18 02:26:51
请教一下我下载了一个FCKeditor 2.0在线编辑器,但是我想用:
script language="javascript">
function dosubmit(fm)
{ if(fm.infoContent.value.length==0)
{alert(fm.infoContent.value.length);return false;}
else
{ return true;}
}
</script>来控制如果文本框里没有值就弹出对话框,可以我不知道要修改FCKeditor 2.0文件那里实现这点,请多多指教谢谢!谢谢!!!!!!!!!!!!!!!!!

// 获取编辑器中HTML内容
function getEditorHTMLContents(EditorName) {
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.GetXHTML(true));
}

// 获取编辑器中文字内容
function getEditorTextContents(EditorName) {
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.EditorDocument.body.innerText);
}

function Click()
{
var aa=document.getElementById("fck控件的ID").value;
if(aa=="")
{
alert("提示信息");
}
}