테스트 사이트 - 개발 중인 베타 버전입니다

게시판 입력창 변경에 대해 채택완료

YeChanDo 9년 전 조회 5,423

링크에서 구력 및 핸디캡 입력창이있는데 입력창 높이가 너무 높아서 줄이고 싶어요. 어떻게 할지 몰라 도움 구합니다.

 


 

 

<span style="font-size: 11pt;"><div class="form-group"></span></p><p><span class="Apple-tab-span" style="white-space:pre">		</span><label class="col-sm-2 control-label" for="wr_password">구력 및 핸디캡<strong class="sound_only">필수</strong></label></p><p><span class="Apple-tab-span" style="white-space:pre">		</span><div class="col-sm-6" ></p><p><span class="Apple-tab-span" style="white-space:pre">			</span><?php if($write_min || $write_max) { ?></p><p><span class="Apple-tab-span" style="white-space:pre">				</span><!-- 최소/최대 글자 수 사용 시 --></p><p><span class="Apple-tab-span" style="white-space:pre">				</span><div class="well well-sm" style="margin-bottom:15px;"></p><p><span class="Apple-tab-span" style="white-space:pre">					</span>현재 <strong><span id="char_count"></span></strong> 글자이며, 최소 <strong><?php echo $write_min; ?></strong> 글자 이상, 최대 <strong><?php echo $write_max; ?></strong> 글자 이하까지 쓰실 수 있습니다.</p><p><span class="Apple-tab-span" style="white-space:pre">				</span></div></p><p><span class="Apple-tab-span" style="white-space:pre">			</span><?php } ?></p><p><span class="Apple-tab-span" style="white-space:pre">			</span><?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></p><p><span class="Apple-tab-span" style="white-space:pre">		</span></div></p><p><span class="Apple-tab-span" style="font-size: 11pt; white-space: pre;">	</span><span style="font-size: 11pt;"></div></span>

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트

/plugin/editor/smarteditor2/editor.lib.php

</p><p>function editor_html($id, $content, $is_dhtml_editor=true)
{
    global $g5, $config;
    static $js = true;</p><p>    $editor_url = G5_EDITOR_URL.'/'.$config['cf_editor'];</p><p>    $html = "";
    $html .= "<span class=\"sound_only\">웹에디터 시작</span>";
    if ($is_dhtml_editor)
        $html .= '<script>document.write("<div class=\'cke_sc\'><button type=\'button\' class=\'btn_cke_sc\'>단축키 일람</button></div>");</script>';</p><p>    if ($is_dhtml_editor && $js) {
        $html .= "\n".'<script src="'.$editor_url.'/js/HuskyEZCreator.js"></script>';
        $html .= "\n".'<script>var g5_editor_url = "'.$editor_url.'", oEditors = [], ed_nonce = "'.ft_nonce_create('smarteditor').'";</script>';
        $html .= "\n".'<script src="'.$editor_url.'/config.js"></script>';
        $html .= "\n<script>";
        $html .= '
        $(function(){
            $(".btn_cke_sc").click(function(){
                if ($(this).next("div.cke_sc_def").length) {
                    $(this).next("div.cke_sc_def").remove();
                    $(this).text("단축키 일람");
                } else {
                    $(this).after("<div class=\'cke_sc_def\' />").next("div.cke_sc_def").load("'.$editor_url.'/shortcut.html");
                    $(this).text("단축키 일람 닫기");
                }
            });
            $(document).on("click", ".btn_cke_sc_close", function(){
                $(this).parent("div.cke_sc_def").remove();
            });
        });';
        $html .= "\n</script>";
        $js = false;
    }</p><p>    $smarteditor_class = $is_dhtml_editor ? "smarteditor2" : "";
    $html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;height:300px\">$content</textarea>";
    $html .= "\n<span class=\"sound_only\">웹 에디터 끝</span>";
    return $html;
}</p><p>

style=\"width:100%;height:300px\" 의 height 값 변경

ex) height:200px

주의 : 전체 입력창에 해당부분 적용 됩니다.

딱 이창만 조정 하시고 싶으시면

해당 창의 ID값을 확인후 스타일 변경 또는 jQuery를 사용해 값을 변경하시면 됩니다. 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인