그누보드/php 초보입니다.
글쓰기 하거나 수정할때 본문의 폰트 크기를 수정하는 방법을 좀 알려주세요.
글쓰기 완료후에 보이는 폰트 크기는 조정했고, 또한 입력할때 제목의 폰트크기는 조정했습니다.
(style.css board.js 에서 각각 조정한걸로 기억합니다)
그런데, 입력창의 본문 폰트 크기 조정하는 방법은 아직 못찾았습니다.
입력창은 'dhtml'로 선택해서 사용하고 있습니다.
write.skin.php에 보니 아래와 같이 cheditor2를 호출하는것 같은데요.
cheditor2는 lib/cheditor4.lib.php 안에 있는데요,
여기를 수정하는게 맞는지, 어떻게 수정해야할지 좀 알려주세요.
나름대로 이렇게 저렇게 수정해봐도 안되네요.
--------------- write.skin.php ---------------
<tr>
<td class=write_head>제 목</td>
<td><input class='ed' style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 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_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=30 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
<? } ?>
</td>
</tr>
--------------- lib/cheditor4.lib.php ---------------
function cheditor2($id, $content='')
{
global $g4;
return "
<textarea name='{$id}' id='tx_{$id}' style='display:none;'>{$content}</textarea>
<script type='text/javascript'>
ed_{$id}.run();
</script>";
}
글쓰기 하거나 수정할때 본문의 폰트 크기를 수정하는 방법을 좀 알려주세요.
글쓰기 완료후에 보이는 폰트 크기는 조정했고, 또한 입력할때 제목의 폰트크기는 조정했습니다.
(style.css board.js 에서 각각 조정한걸로 기억합니다)
그런데, 입력창의 본문 폰트 크기 조정하는 방법은 아직 못찾았습니다.
입력창은 'dhtml'로 선택해서 사용하고 있습니다.
write.skin.php에 보니 아래와 같이 cheditor2를 호출하는것 같은데요.
cheditor2는 lib/cheditor4.lib.php 안에 있는데요,
여기를 수정하는게 맞는지, 어떻게 수정해야할지 좀 알려주세요.
나름대로 이렇게 저렇게 수정해봐도 안되네요.
--------------- write.skin.php ---------------
<tr>
<td class=write_head>제 목</td>
<td><input class='ed' style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 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_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=30 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
<? } ?>
</td>
</tr>
--------------- lib/cheditor4.lib.php ---------------
function cheditor2($id, $content='')
{
global $g4;
return "
<textarea name='{$id}' id='tx_{$id}' style='display:none;'>{$content}</textarea>
<script type='text/javascript'>
ed_{$id}.run();
</script>";
}
댓글 4개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284348 | |
| 284336 | |
| 284333 | |
| 284332 | |
| 284320 | |
| 284318 | |
| 284316 | |
| 284313 | |
| 284307 | |
| 284306 | |
| 284303 | |
| 284298 | |
| 284296 | |
| 284290 | |
| 284286 | |
| 284280 | |
| 284277 | |
| 284272 | |
| 284261 | |
| 284259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기