원본을 손대야 하는 거이 아쉽지만
js/wrest.js 에서 아래와 같이 수정하면 됩니다.
// 필드가 null 이 아니라면 오류메세지 출력후 커서를 해당 오류 필드로 옮김
// 오류 필드는 배경색상을 바꾼다.
if (wrestFld != null)
{
alert(wrestMsg);
//지에디터를 위해 추가
if(wrestMsg=="내용 : 필수 입력입니다.\n"){
geditor_wr_content.mode_source(this.checked);
return false;
}
//지에디터를 위해 추가 끝
wrestFld.style.backgroundColor = wrestFldBackColor;
wrestFld.focus();
return false;
}
if (this.oldsubmit && this.oldsubmit() == false)
return false;
return true;
}
댓글 2개
이렇게하면,
geditor를 적용하지 않은 일반 게시판들이
본문이 비어있어도 그냥 업데이트되더군요..
전 이렇게 했습니다.
13행
var arrAttr = new Array ('required', 'trim', 'minlength', 'email', 'hangul', 'hangul2',
'memberid', 'nospace', 'numeric', 'alpha', 'alphanumeric',
'jumin', 'saupja', 'alphanumericunderline', 'telnumber', 'hangulalphanumeric', 'geditor'); //마지막에 'geditor'를 추가한다.
349행 추가
var is_gEditor = false;
401행
case "geditor" : is_gEditor = true; break;
414행
//지에디터를 위해 추가
if(is_gEditor && wrestMsg)
geditor_wr_content.mode_source(this.checked);
return false;
}
//지에디터를 위해 추가 끝
그리고 geditor를 쓰는 TEXTAREA태그에 'geditor'라고 쓰면됩니다. (아마 자동으로 쓰여지는 걸로 알고 있긴한데...)
geditor를 적용하지 않은 일반 게시판들이
본문이 비어있어도 그냥 업데이트되더군요..
전 이렇게 했습니다.
13행
var arrAttr = new Array ('required', 'trim', 'minlength', 'email', 'hangul', 'hangul2',
'memberid', 'nospace', 'numeric', 'alpha', 'alphanumeric',
'jumin', 'saupja', 'alphanumericunderline', 'telnumber', 'hangulalphanumeric', 'geditor'); //마지막에 'geditor'를 추가한다.
349행 추가
var is_gEditor = false;
401행
case "geditor" : is_gEditor = true; break;
414행
//지에디터를 위해 추가
if(is_gEditor && wrestMsg)
geditor_wr_content.mode_source(this.checked);
return false;
}
//지에디터를 위해 추가 끝
그리고 geditor를 쓰는 TEXTAREA태그에 'geditor'라고 쓰면됩니다. (아마 자동으로 쓰여지는 걸로 알고 있긴한데...)
게시글 목록
| 번호 | 제목 |
|---|---|
| 89 | |
| 81 | |
| 79 | |
| 76 | |
| 75 | |
| 66 | |
| 64 | |
| 63 | |
| 62 | |
| 61 | |
| 59 | |
| 56 | |
| 49 | |
| 47 | |
| 44 | |
| 41 | |
| 40 | |
| 39 | |
| 37 | |
| 36 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기