FCKEditor focus & validate

Posted at 2008/09/29 13:57 // in 웹프로그래밍™/jQuery, Javascript // by 블루비
사용자 삽입 이미지




처음 로드시 FCKEditor 생성
window.onload = fucntion()
{
oFCKeditor = new FCKeditor( 'content','100%',300) ;
oFCKeditor.ReplaceTextarea() ;
}

validate 체크 및 focus
var fck=FCKeditorAPI.GetInstance(oFCKeditor.InstanceName) ;
if( fck.GetXHTML(true) == "" ){
window.alert("내용을 입력해 주세요");
fck.Focus();
return;
}
2008/09/29 13:57 2008/09/29 13:57

http://blueb.net/blog/trackback/1305

댓글을 남겨주세요.

[로그인][오픈아이디란?]