댓글에 스마트에디터2 적용하기 > 그누보드팁

본문 바로가기
사이트 내 전체검색

오늘 본 상품 0

없음


그누보드팁

댓글에 스마트에디터2 적용하기

페이지 정보

profile_image
작성자 유토하우스
댓글 0건 조회 470회 작성일 23-05-14 09:23

본문

안녕하세요

유토맨입니다


sir 모아비스님 자료인용입니다


---------------------------------------------------------------

댓글에 스마트에디터2 적용하기...

 

1) 상단에...

 

<?

$commnet_editor = true;
$is_dhtml_editor = true;
if($commnet_editor)
include_once(G5_EDITOR_LIB);
$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);

?>

를 넣으세요...

 

2) $comment = $list[$i]['content']; 다음줄에...

 

아래의 코드를 추가하세요...
$comment = nl2br(stripslashes($list[$i]['wr_content'])); //댓글 태그적용

 

3) 

<span class="sound_only">내용</span>

 <?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
 <?php
    if($commnet_editor)
    {
     echo $editor_html;
     }
    else
    {
    ?>

    <textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용" placeholder="댓글내용을 입력해주세요" 
    <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
    <?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>

    <?}?>

<script>

 

<span class="sound_only">내용</span> 과

<script> 사이에 위의 코드로 교체하세요...

 

4. function fviewcomment_submit(f) { 밑에 아래의 코드를 추가하세요.
    
    <?php echo get_editor_js('wr_content', $is_dhtml_editor); ?>
    <?php echo chk_editor_js('wr_content', $is_dhtml_editor); ?>

 

- 감사합니다

추천0

댓글목록

등록된 댓글이 없습니다.


고객센터

카톡문의(ID) : utohouse 평일 (10:00~17::00) 점심시간 (12:00~13::00) 토,일,공휴일 휴무

입금계좌안내

카카오은행 3333-27-9421813 정병묵

아름다운 공간만들기 | 웹제작 유토하우스 주소 경기 용인시 수지구 죽전동 172-1 E-MAIL. utohouse@gmail.com

개인정보보호책임자 정병묵

네이버블로그인스타그램네이버카페유튜브페이스북트위터카카오
아름다운 공간만들기 | 웹제작 Copyright © 2001-2013 utohouse.co.kr. All Rights Reserved.