cheditor4에서 에디터를 2개 사용할려면 어떻게 해야 하나요? > 그누4 질문답변

그누4 질문답변

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

cheditor4에서 에디터를 2개 사용할려면 어떻게 해야 하나요? 정보

cheditor4에서 에디터를 2개 사용할려면 어떻게 해야 하나요?

본문

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

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%', '250');
    echo cheditor1('i_spec', '100%', '250');
}
?>

상단 지정후... i_spec 는 text로 추가했고요...

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

위와 같이 하니 등록이 안되네요...

조언을 부탁합니다.
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로