w

입력시 본문의 폰트 크기 조정 하는방법?

그누보드/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>";
}

댓글 4개

cheditor4/cheditor.js
파일에 보시면

this.config = {
editorWidth : '100%',
editorHeight : '300px',
editorFontSize : '9pt',
editorFontFace : 'gulim'

부분이 있습니다
editorFontSize 값을 바꾸어주어도 효과가 없네요 ㅠ.ㅠ
최신 거 보니
cheditor4.lib.php에
if ($g4['is_cheditor5'])
{
$g4['cheditor4'] = "cheditor5";

되어 있네요 혹 cheditor5 폴더 있으면
cheditor5/cheditor.js
editorFontSize : 를 변경해 보세요
저는 확인해 보니 잘 되네요
와우 잘되네요. 고맙습니다.
cheditor5/cheditor.js 를 변경하니 되네요^^
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
11-10-29 조회 1,690
11-10-29 조회 1,096
11-10-29 조회 1,633
11-10-29 조회 1,684
11-10-29 조회 851
11-10-29 조회 938
11-10-29 조회 1,065
11-10-29 조회 1,061
11-10-29 조회 1,022
11-10-28 조회 1,076
11-10-28 조회 895
11-10-28 조회 1,083
11-10-28 조회 1,696
11-10-28 조회 901
11-10-28 조회 1,056
11-10-28 조회 909
11-10-28 조회 1,343
11-10-28 조회 939
11-10-28 조회 1,742
11-10-28 조회 1,360