dhtml 를 일반 wr_4 에 적용하고 싶습니다.
본문
현재 write.skin.php 에 wr_content를 Dhtml 로 쓰고있습니다..
근데 wr_4 에도 dhtml를 쓰고싶은데 어떻게 설정해야하는지 궁금해서요..
<tr>
</tr>
<td class="wr_content">
<?php if($write_min || $write_max) { ?>
<!-- 최소/최대 글자 수 사용 시 -->
<p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 이상, 최대 <strong><?php echo $write_max; ?></strong>글자 이하까지 글을 쓰실 수 있습니다.</p>
<?php } ?>
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
<?php if($write_min || $write_max) { ?>
<!-- 최소/최대 글자 수 사용 시 -->
<div id="char_count_wrap"><span id="char_count"></span>글자</div>
<?php } ?>
</td>
</tr>
이렇게 되어있는데요..
<tr>
</tr>
<td>
<div id="autosave_wrapper">
<input type="text" name="wr_4" value="<?=$write['wr_4']?>" id="wr_4" class="frm_input required" size="50" maxlength="255">
</div>
</td>
</tr>
이걸 Dhtml 적용하고 싶습니다.
답변 1
<?php echo editor_html("wr_4", $write['wr_4']); ?>
폼체크부분에
<?php echo get_editor_js("wr_4"); ?>