cheditor를 댓글에 사용하고 싶어요. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

cheditor를 댓글에 사용하고 싶어요. 정보

cheditor를 댓글에 사용하고 싶어요.

본문

if ($board[bo_use_dhtml_editor]) {
    include_once("$g4[path]/lib/cheditor4.lib.php");
    echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
    echo cheditor1('wr_content', '100%', '250', 'template_comment.xml');
}

...중략...

<!-- 코멘트 입력 -->
<div id="comment_write" style="display:none">
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this)" autocomplete="off" style="margin:0px">
<input type="hidden" name="w" id="w" value="c">
<input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id; ?>">
<input type="hidden" name="comment_id" id="comment_id" value="">
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
<input type="hidden" name="spt" value="<?php echo $spt; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="cwin" value="<?php echo $cwin; ?>">
<input type="hidden" name="is_good" value="">
<table width="100%" cellspacing="0" cellpadding="0" class="comment_wrap">
  <tr>
    <td>
      <div class="comment_top">
        <?php if ($is_guest) { ?>
        <? /*자동등록방지해제 ?><img id="kcaptcha_image" src="#" width="93" height="46" alt="" style="margin-bottom:-5px">
        <input type="text" name="wr_key" size="12" title="왼쪽의 글자를 입력하세요." class="input_type" style="margin-right:10px">
<? */ ?>
        <? $temp_comment_name = ''; if ($_COOKIE['uchat_name']) $temp_comment_name = htmlspecialchars(Unescape($_COOKIE['uchat_name'])); ?>
        이름 <input type="text" maxlength="20" size="10" name="wr_name" value="<?=$temp_comment_name?>" required title="이름" class="input_type" style="margin-right:5px">
        암호 <input type="password" maxlength="20" size="10" name="wr_password" required title="패스워드" class="input_type">
        <?php } else { ?>
        <span class="member"><?=$member[mb_nick]?></span>
        <? } ?>
        <input type="checkbox" id="wr_secret" name="wr_secret" value="secret" style="vertical-align:middle;">
        <!--<img src="<?php echo $board_skin_path; ?>/img/none.gif" width="10" height="15" alt="비밀글" title="비밀글" class="icon_secret" style="margin-bottom:-1px; margin-left:1px">-->
            <span>비밀글</span>
        <?php if ($comment_min || $comment_max) { ?><span id="char_count"></span><?php } ?>
      </div>
      <div style="padding-bottom:5px;">
        <!--<textarea id="wr_content" name="wr_content" required title="내용" class="view_textarea" <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?> class="view_textarea" style="word-break:break-all;"></textarea>-->
        <? echo cheditor2('wr_content', ''); ?>
        <?php if ($comment_min || $comment_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?php } ?>
        <input type="image" src="<?php echo $board_skin_path; ?>img/none.gif" border="0" accesskey="s" style="width:0; height:0; overflow:hidden">
        <a href="#" id="fviewcomment_submit" name="fviewcomment_submit" onclick="javascript: fviewcomment.onsubmit() ? fviewcomment.submit() : ''" style="text-decoration:none; line-height:74px"><span class="btn_comment">댓글입력</span></a>
<?  ?>
      </div>
    </td>
  </tr>
</table>
</form>
</div>
<!-- //코멘트 입력 -->

그누보드 4.36.20 사용중 입니다.
위와 같이 view_comment.skin.php에 cheditor를 넣었는데요.
에디터 위에 뭔가가 덧씌워진 것처럼 클릭이 안됩니다.

그래서 에디터 자체는 작동하는 지 확인 하려고

<!-- //코멘트 입력 -->

<? echo cheditor2('wr_content', ''); ?>

이렇게 코멘트 입력 div 밖에 놔뒀더니 그땐 정상작동 하더라구요.
댓글에 cheditor를 사용하려면 어떻게 해야될까요?

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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