CKeditor使用js验证不得为空
if (CKEDITOR.instances.TextArea1.getData() == '') { alert('警告:详细内容不得为空!'); CKEDITOR.instances.TextArea1.focus(); return false; }
本博客作为一个入门者的自学记录,欢迎各位同行者不吝赐教。
if (CKEDITOR.instances.TextArea1.getData() == '') { alert('警告:详细内容不得为空!'); CKEDITOR.instances.TextArea1.focus(); return false; }