입력시 본문의 폰트 크기 조정 하는방법? > 그누4 질문답변

그누4 질문답변

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

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

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

본문

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

댓글 전체

cheditor4/cheditor.js
파일에 보시면

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

부분이 있습니다
최신 거 보니
cheditor4.lib.php에
if ($g4['is_cheditor5'])
{
    $g4['cheditor4']      = "cheditor5";

되어 있네요 혹 cheditor5 폴더 있으면 
cheditor5/cheditor.js
editorFontSize  : 를 변경해 보세요
저는 확인해 보니 잘 되네요
© SIRSOFT
현재 페이지 제일 처음으로