cheditor를 한 게시판에서 세번을 사용할 수 있는 방법이 있나요? > 그누4 질문답변

그누4 질문답변

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

cheditor를 한 게시판에서 세번을 사용할 수 있는 방법이 있나요? 정보

cheditor를 한 게시판에서 세번을 사용할 수 있는 방법이 있나요?

본문

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


<?=cheditor2('wr_content', $content);?>
이것이 기본으로 들어가 있는 소스 입니다.

한개를 더 쓰려면 어떻게 해야 하나요?

그냥 단순히 한개를 추가하면 안되던데요.. wr_10 필드를 이용해서 사용하려고 합니다.

고수님들 부탁 드립니다.

댓글 전체

Write.skin.php

상단추가
    echo cheditor1('wr_content', '90%', '80'); // 기존
    echo cheditor1('wr_9', '90%', '80'); // 추가 wr_9 이용시


내용부분 추가
  <? if ($is_dhtml_editor) { ?>
            <?=cheditor2('wr_9', $write[wr_9]);?>
        <? } else { ?>
        <table width=90% cellpadding=0 cellspacing=0>
        <tr>
            <td width=100% align=left valign=bottom>
                <span style="cursor: pointer;" onclick="textarea_decrease('wr_9', 3);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_original('wr_9', 3);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_increase('wr_9', 3);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
            <td width=100% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
        </tr>
        </table>
  <textarea id=wr_9 name=wr_9 class=tx style='width:90%; word-break:break-all;' rows=5 itemname="내용이외표현"
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_9', 'char_count');"<?}?>><?=$write[wr_9]?></textarea>
        <? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_9', 'char_count'); </script><?}?>
        <? } ?>


펑션 부분 추가
 <?
    if ($is_dhtml_editor) echo cheditor3('wr_content');
    if ($is_dhtml_editor) echo cheditor3('wr_9');
 ?>
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

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