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

Copy
<div class="form-group"> <label class="col-sm-2 control-label" for="wr_password">구력 및 핸디캡<strong class="sound_only">필수</strong></label> <div class="col-sm-6" > <?php if($write_min || $write_max) { ?> <!-- 최소/최대 글자 수 사용 시 --> <div class="well well-sm" style="margin-bottom:15px;"> 현재 <strong><span id="char_count"></span></strong> 글자이며, 최소 <strong><?php echo $write_min; ?></strong> 글자 이상, 최대 <strong><?php echo $write_max; ?></strong> 글자 이하까지 쓰실 수 있습니다. </div> <?php } ?> <?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?> </div> </div>
답변 1개
채택된 답변
+20 포인트
2016-11-07 (월) 16:38:20
/plugin/editor/smarteditor2/editor.lib.php
Copy
function editor_html($id, $content, $is_dhtml_editor=true){ global $g5, $config; static $js = true; $editor_url = G5_EDITOR_URL.'/'.$config['cf_editor']; $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>'; 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; } $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;}
style=\"width:100%;height:300px\" 의 height 값 변경
ex) height:200px
주의 : 전체 입력창에 해당부분 적용 됩니다.
딱 이창만 조정 하시고 싶으시면
해당 창의 ID값을 확인후 스타일 변경 또는 jQuery를 사용해 값을 변경하시면 됩니다.
답변을 작성하려면 로그인이 필요합니다.