表格1:
复制代码代码如下所示:
功能checkfck(关键)
{
无功oeditor = fckeditorapi.getinstance(关键);
无功量= oeditor.getxhtml(真);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
内容= content.replace( / / g,);
如果(内容= = null | |内容= =){
OEditor.SetHTML();
返回false;
}
返回true;
}
表格2:
复制代码代码如下所示:
功能getmessagelength(STR)
{
无功oeditor = fckeditorapi.getinstance(STR);
奥多姆= oeditor.editordocument VaR;
VaR iLength;
如果(如果为Internet Explorer)。
{
odom.body.innertext.length iLength =;
}
如果壁虎。
{
VAR r = odom.createrange();
r.selectnodecontents(奥多姆。体);
r.tostring iLength =(长度);
}
返回iLength
}