댓글 부분에 테이블소스를 넣고 싶은데요 넣으면 태그까지 모두 달려나오네요
========================
<table>
<tr>
<td>내용</td>
</tr>
</table>
========================
view-comment.skin.php 파일에서 아랫부분 어떻게 수정해야되나요?
<div class="form-group">
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span> 글자</strong><?php } ?>
<textarea id="wr_content" name="wr_content" maxlength="10000" rows=5 required class="form-control input-sm" title="내용"
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
<script>
$("textarea#wr_content[maxlength]").live("keyup change", function() {
var str = $(this).val()
var mx = parseInt($(this).attr("maxlength"))
if (str.length > mx) {
$(this).val(str.substr(0, mx));
return false;
}
});
</script>
</div>
답변 2개
댓글 감사드립니다.
에디터 사용하지 않고 할 수는 없나요?
사용자가 테이블 틀에맞게 내용을 입력받게 하고 싶어서 입니다.
답변을 작성하려면 로그인이 필요합니다.