如何使用javascript验证FCKeditor的必填字段.
最佳答案
试试这个,
原文链接:https://www.f2er.com/js/429393.htmlvar EditorInstance = FCKeditorAPI.GetInstance('message') ;
if(EditorInstance.EditorDocument.body.innerText.length<=0)
{
alert("This firld is mandatory");
EditorInstance.EditorDocument.body.focus();
return false;
}
资源:
http://dreamtechworld.wordpress.com/2008/12/06/validating-firld-in-fckeditor-using-javascript/