새로만든 php 스마트에디터 적용은 어떻게 해야 하나요?

새로만든 php 스마트에디터 적용은 어떻게 해야 하나요?

QA

새로만든 php 스마트에디터 적용은 어떻게 해야 하나요?

본문


<?
//상단에 에디터 가져오기
include_once("./_common.php");
include_once (G5_ADMIN3_PATH."/head_mk.php");
include_once(G5_EDITOR_LIB);
?>
 
1. 수업방 이름<br>
<input type="text" name="wr_subject" value="<?php echo $row['wr_subject']?>"> 
 
2. 수업방소개입력<br>
<?php echo editor_html('wr_content', get_text(html_purifier($row['wr_content']), 1)); ?>
 
//참고 업데이트 파일
    $sql = " insert into {$g5['recode_table']}  set wr_subject   = '$wr_subject', wr_content   = '$wr_content' ";
    sql_query($sql);

 

게시판을 사용하는게 아니라 새로 페이지를 만들어서 스마트 에디터를 붙일려고 해요.

근데 wr_content 자체가 저장이 안되네요..ㅠㅠㅠ

입력코드를 위의 코드데로만 해도 되는지 아님 다른 코드가 필요한지..

어디를 점검해야하는지 아니면 빠진 코드가 없는지 고수님들 부탁드립니다.

 

그누버전은 그누5.6.2입니다.

이 질문에 댓글 쓰기 :

답변 2

하단에 js 부분이 있는 확인을 해주세요.

 

 

$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);


$editor_js = '';
$editor_js .= get_editor_js('wr_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('wr_content', $is_dhtml_editor);

 

 

* 만약 다른 필드를 에디터 적용시

 

<?php 
    include_once(G5_EDITOR_LIB);
    echo editor_html('wr_10', $row['wr_10'], 1);
?>
<script>
    <?php echo get_editor_js("wr_10"); ?>
</script>

 

* 아래의 내용도 참고를 해보세요.

 

https://sir.kr/qa/507755

 

 

 

답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT