mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
방명록 기본 스킨 정리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3014 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
51fb1e0d43
commit
d0bc8a4b9f
29 changed files with 505 additions and 327 deletions
|
|
@ -60,9 +60,13 @@
|
|||
if(!$option->enable_component) $enable_component = false;
|
||||
else $enable_component = true;
|
||||
|
||||
// html 모드 조절
|
||||
if($option->disable_html) $html_mode = false;
|
||||
else $html_mode = true;
|
||||
|
||||
// 크기 조절 옵션 설정
|
||||
if(!$option->resizable) $resizable = 'false';
|
||||
else $resizable = 'true';
|
||||
if(!$option->resizable) $resizable = false;
|
||||
else $resizable = true;
|
||||
|
||||
// 높이 설정
|
||||
if(!$option->height) $editor_height = 400;
|
||||
|
|
@ -145,6 +149,11 @@
|
|||
Context::set('enable_component', $enable_component);
|
||||
Context::set('enable_default_component', $enable_default_component);
|
||||
|
||||
/**
|
||||
* html_mode 가능한지 변수 설정
|
||||
**/
|
||||
Context::set('html_mode', $html_mode);
|
||||
|
||||
/**
|
||||
* resizable 가능한지 변수 설정
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@
|
|||
|
||||
.xeEditor .editorInfo { background:#fbfbfb; padding:.5em; border:1px solid #e1e1dd; color:#999999; position:relative; margin:5px 20px 0 20px;}
|
||||
.xeEditor .close { cursor:pointer; position:absolute; top:3px; right:3px; _top:3px; _right:25px;}
|
||||
.xeEditor .editor_iframe_box { background:#ffffff; clear:both; border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; padding:5px; margin:0 20px 0 20px; }
|
||||
.xeEditor .editor_iframe_box { background:#ffffff; clear:both; border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; padding:5px; margin:10px 20px 10px 20px; }
|
||||
.xeEditor .editor_iframe_textarea { background:#ffffff; clear:both; border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; padding:.5em; margin:0 20px 0 20px; width:100%; font-size:1em; display:none;}
|
||||
|
||||
.xeEditor .textAreaDragIndicator { text-align:center; background:url(../images/lineTextAreaDrag.gif) repeat-x left center; padding:5px 0 5px 0; }
|
||||
.xeEditor .textAreaDragIndicatorBar { background:url(../images/buttonTextAreaDrag.gif) no-repeat center; cursor:move;height:14px;}
|
||||
|
||||
.xeEditor .editor_info { clear:both; padding:5px 20px 5px 20px; overflow:hidden;}
|
||||
.xeEditor .editor_info { clear:both; padding:10px 20px 5px 20px; overflow:hidden;}
|
||||
.xeEditor .editor_info .editor_option { float:left; color:#888888; }
|
||||
.xeEditor .editor_info .editor_autosaved_message { color:#888888; float:right; }
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
var auto_saved_msg = "{$lang->msg_auto_saved}";
|
||||
|
||||
<!--@if(!$editor_manual_start)-->
|
||||
xAddEventListener(window, 'load', function() { editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", {$enable_resizable}, '{$editor_height}' ) } );
|
||||
xAddEventListener(window, 'load', function() { editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' ) } );
|
||||
<!--@end-->
|
||||
//]]></script>
|
||||
|
||||
|
|
@ -129,19 +129,27 @@
|
|||
<!--@end-->
|
||||
|
||||
<!-- HTML 모드 사용 기능 및 자동저장 메세지 출력용 -->
|
||||
<!--@if($html_mode || $enable_autosave)-->
|
||||
<div class="editor_info">
|
||||
<!--@if($html_mode)-->
|
||||
<div class="editor_option">
|
||||
<input type="checkbox" id="use_html_{$editor_sequence}" value="Y" onclick="editorChangeMode(this, '{$editor_sequence}');" /> <label for="use_html_{$editor_sequence}">HTML</label>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<!--@if($enable_autosave)-->
|
||||
<div class="editor_autosaved_message" id="editor_autosaved_message_{$editor_sequence}"> </div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<!-- 에디터 출력 -->
|
||||
<div class="editor_iframe_box"><iframe id="editor_iframe_{$editor_sequence}" frameborder="0" height="{$editor_height}" style="background-color:transparent;"></iframe></div>
|
||||
<textarea id="editor_textarea_{$editor_sequence}" class="editor_iframe_textarea" style="display:none; height:{$editor_height}" rows="10" cols="10"></textarea>
|
||||
|
||||
<!-- 에디터 크기 조절 bar -->
|
||||
<!--@if($enable_resizable)-->
|
||||
<div class="textAreaDragIndicator"><div class="textAreaDragIndicatorBar" id="editor_drag_bar_{$editor_sequence}"></div></div>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($allow_fileupload)-->
|
||||
<!-- 첨부파일 영역 -->
|
||||
|
|
|
|||
|
|
@ -95,11 +95,7 @@ function editorGetSelectedNode(editor_sequence) {
|
|||
/**
|
||||
* editor 시작 (editor_sequence로 iframe객체를 얻어서 쓰기 모드로 전환)
|
||||
**/
|
||||
function editorStart(editor_sequence, primary_key, content_key, resizable, editor_height) {
|
||||
// resize 가/불가에 대한 체크
|
||||
if(typeof(resizable)=="undefined"||!resizable) resizable = false;
|
||||
else resizable = true;
|
||||
|
||||
function editorStart(editor_sequence, primary_key, content_key, editor_height) {
|
||||
// iframe obj를 찾음
|
||||
var iframe_obj = editorGetIFrame(editor_sequence);
|
||||
if(!iframe_obj) return;
|
||||
|
|
@ -140,13 +136,6 @@ function editorStart(editor_sequence, primary_key, content_key, resizable, edito
|
|||
// IE가 아니고 내용이 없으면 <br /> 추가 (FF등에서 iframe 선택시 focus를 주기 위한 꽁수)
|
||||
if(!content && !xIE4Up) content = "<br />";
|
||||
|
||||
// 크기 변경 불가일 경우 드래그바 숨김
|
||||
var dragObj = xGetElementById("editor_drag_bar_"+editor_sequence);
|
||||
if(dragObj) {
|
||||
if(resizable == false) dragObj.style.display = "none";
|
||||
else dragObj.style.display = "block";
|
||||
}
|
||||
|
||||
// IE일 경우 ctrl-Enter 안내 문구를 노출
|
||||
var ieHelpObj = xGetElementById("for_ie_help_"+editor_sequence);
|
||||
if(xIE4Up && ieHelpObj) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue