주문서에 추가로 입력을 받으려고 에디터를 붙여 놓았습니다.
DB에 필드 추가하고 시도해봤는데 저장이 않되네요.
print_r2($_POST); exit; 로 확인해 봤는데
입력한 내용이 넘어가지도 않습니다.
특별한 이유가 있을까요?
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
이 게시물을 신고 하시겠습니까?신고사유를 선택해주세요.
js는 다 넣어주었구요.
<script>
function fitemuse_submit(f) {
var is_content_editor_data = oEditors.getById['is_content'].getIR();
oEditors.getById['is_content'].exec('UPDATE_CONTENTS_FIELD', []);
if(jQuery.inArray(document.getElementById('is_content').value.toLowerCase().replace(/^\s*|\s*$/g, ''), [' ','<p> </p>','<p><br></p>','<div><br></div>','<p></p>','<br>','']) != -1){document.getElementById('is_content').value='';}
if (!is_content_editor_data || jQuery.inArray(is_content_editor_data.toLowerCase(), [' ','<p> </p>','<p><br></p>','<p></p>','<br>']) != -1) { alert("내용을 입력해 주십시오."); oEditors.getById['is_content'].exec('FOCUS'); return false; }
return true;
}
// BS3
$(function(){
$("#is_content").addClass("form-control input-sm form-is-size");
});
</script>
</div>
이 부분을 넣어주면 에러나 나네요...