스마트에디터에 값이 전혀 넘어가지지 않아요..
본문
<?php echo editor_html('news_content', $content , true);
위에 인클루드로 스마트 에디터를 불러와서 글을적고 값을 넘기는데 전혀 넘어가지않네요..
머가 문제일까요
답변 2
var wr_content_editor_data = oEditors.getById['wr_content'].getIR();
oEditors.getById['wr_content'].exec('UPDATE_CONTENTS_FIELD', []);
if(jQuery.inArray(document.getElementById('wr_content').value.toLowerCase().replace(/^\s*|\s*$/g, ''), [' ','<p> </p>','<p><br></p>','<div><br></div>','<p></p>','<br>','']) != -1){document.getElementById('wr_content').value='';}
if (!wr_content_editor_data) { alert("내용을 입력해 주십시오."); froala.instances.wr_content.focus(); return false; }
if (typeof(f.wr_content)!="undefined") f.wr_content.value = wr_content_editor_data;
위 부분이 전송시 스크립트 반영되어 있는지 체크해보시거나
아이디값을 수정해 반영해 주셔야 합니다.
받는 페이지에서 post 출력하셔서 정상적으로 일단 갔는지 확인하시고 제대로 안갔으면 보내는쪽을 체크해보셔야 할거 같습니다.