에디터 질문입니다. 정보
에디터 질문입니다.본문
게시판에 글쓰기 할때 관리자에서 DHTML 에디터 사용을 체크하면
내용부분에 에디터기능을 사용하여 글을 쓸수 있는데
항목을 내용2로 하나더 두고 에디터 기능을 추가로 사용하려고 하는데 방법이 있을까요?
제목
내용 (에디터사용)
내용2 (에디터사용) ->추가로 사용
링크
파일첨부
..
항목추가는 내용2를 wr_1 로 하려고 하는데
<?=cheditor2('wr_content', $content);?>
이부분을
<?=cheditor2('wr_1', $wr_1);?> 로 수정하면 입력란이 사라집니다.
방법이 있다면 방법좀 알려주시면 감사하겠습니다.
내용부분에 에디터기능을 사용하여 글을 쓸수 있는데
항목을 내용2로 하나더 두고 에디터 기능을 추가로 사용하려고 하는데 방법이 있을까요?
제목
내용 (에디터사용)
내용2 (에디터사용) ->추가로 사용
링크
파일첨부
..
항목추가는 내용2를 wr_1 로 하려고 하는데
<?=cheditor2('wr_content', $content);?>
이부분을
<?=cheditor2('wr_1', $wr_1);?> 로 수정하면 입력란이 사라집니다.
방법이 있다면 방법좀 알려주시면 감사하겠습니다.
댓글 전체
write.skin.php
★★ 상단 - wr_1 사용시
echo cheditor1('wr_content', '100%', '250'); // 기본
echo cheditor1('wr_1', '100%', '100'); // 추가
★★ 중간 - 내용란 복사 해서 붙여넣기 후 wr_content -> wr_1로 변경
<tr>
<td class=write_head>부가설명</td>
<td class='write_head' style='padding:5 0 5 0;'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_1', $write[wr_1]);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_1', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_1', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_1', 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="wr_1" name="wr_1" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_1', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_1', 'char_count'); </script><?}?>
<? } ?>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
★★ 하단
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_1'); // 추가
★★ 상단 - wr_1 사용시
echo cheditor1('wr_content', '100%', '250'); // 기본
echo cheditor1('wr_1', '100%', '100'); // 추가
★★ 중간 - 내용란 복사 해서 붙여넣기 후 wr_content -> wr_1로 변경
<tr>
<td class=write_head>부가설명</td>
<td class='write_head' style='padding:5 0 5 0;'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_1', $write[wr_1]);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_1', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_1', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_1', 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="wr_1" name="wr_1" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_1', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_1', 'char_count'); </script><?}?>
<? } ?>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
★★ 하단
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_1'); // 추가
빠른답변 감사하고 해결했습니다.
복 많이 받으세요
감사합니다.
복 많이 받으세요
감사합니다.