inputTypeTextArea class의 height를 100px 로 늘림 (전체 공통이라 모든 페이지에서 적당한 크기고 재조절)

에디터의 미리보기시에 에디터에 지정된 폰트 컬러를 맞추도록 수정


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4969 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-11-24 09:11:43 +00:00
parent 7c3b336e41
commit e09ca5727a
4 changed files with 14 additions and 9 deletions

View file

@ -26,7 +26,7 @@ form { margin:0; padding:0; }
*:first-child+html .inputTypeText { font-size:9pt; }
.inputTypeText:hover,
.inputTypeText:focus { background:#f4f4f4; }
.inputTypeTextArea { border:1px solid !important; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6 !important; background:#ffffff; font-size:1em; _font-size:9pt;}
.inputTypeTextArea { border:1px solid !important; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6 !important; background:#ffffff; font-size:1em; _font-size:9pt; height:100px;}
*:first-child+html .inputTypeTextArea { font-size:9pt; }
.w40 { width:40px; }

View file

@ -67,9 +67,11 @@ function editorGetSelectedNode(editor_sequence) {
/**
* editor 시작 (editor_sequence로 iframe객체를 얻어서 쓰기 모드로 전환)
**/
var _editorFontColor = new Array();
function editorStart(editor_sequence, primary_key, content_key, editor_height, font_color) {
if(typeof(font_color)=='undefined') font_color = '#000';
_editorFontColor[editor_sequence] = font_color;
// iframe obj를 찾음
var iframe_obj = editorGetIFrame(editor_sequence);
@ -519,11 +521,11 @@ function showEditorExtension(evt,editor_sequence){
}
}
function showPreviewContent(ret_obj,response_tags, params, fo_obj) {
var preview_obj = editorGetPreviewArea(params.editor_sequence);
if(xGetElementById('fileUploader_'+editor_sequence)) xGetElementById('fileUploader_'+params.editor_sequence).style.display='none';
// alert(ret_obj.content);
xInnerHtml(preview_obj, ret_obj.content);
function showPreviewContent(editor_sequence) {
if(typeof(editor_sequence)=='undefined') return;
if(typeof(_editorFontColor[editor_sequence])=='undefined') return;
var preview_obj = editorGetPreviewArea(editor_sequence);
preview_obj.contentWindow.document.body.style.color = _editorFontColor[editor_sequence];
}
function setPreviewHeight(editor_sequence){

View file

@ -1 +1,4 @@
{$content}
<script type="text/javascript">
top.xAddEventListener(window, 'load', function() { top.showPreviewContent({$editor_sequence}); } );
</script>
{$content}

View file

@ -145,7 +145,7 @@
<tr>
<th scope="row"><div>{$lang->description}</div></th>
<td>
<textarea name="description" class="inputTypeTextArea w100">{htmlspecialchars($member_info->description)}</textarea>
<textarea name="description" class="inputTypeTextArea w400">{htmlspecialchars($member_info->description)}</textarea>
<p>{$lang->about_member_description}</p>
</td>
</tr>
@ -197,7 +197,7 @@
<!--// textarea -->
<!--@elseif($val->column_type == 'textarea')-->
<textarea name="{$val->column_name}" class="inputTypeTextArea w100">{htmlspecialchars($val->value)}</textarea>
<textarea name="{$val->column_name}" class="inputTypeTextArea w400">{htmlspecialchars($val->value)}</textarea>
<!--// 다중 선택 -->
<!--@elseif($val->column_type == 'checkbox')-->