댓글에 스마트에디터2 적용하기... 정보
댓글에 스마트에디터2 적용하기...관련링크
본문
댓글에 스마트에디터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); ?>
- 감사합니다. (모아비즈) -
8
댓글 12개
평안한 저녁시간 되세요...^ㅡ^~
감사합니다. 편안한 시간 되세요~~~!!!
네...감사합니다...^ㅡ^~
내용이 많아서 어느 부분일지...
기존 스킨에는 댓글이 잘 써지는데 알려주신 댓글에 에디터를 달아서 하면 '올바른 방법으로 이용해 주세요' 가 나오네요
ㄴㄴ