git-svn-id: http://xe-core.googlecode.com/svn/trunk@1816 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-28 02:18:54 +00:00
parent 996fc97b7e
commit c62c515195
8 changed files with 72 additions and 60 deletions

View file

@ -2,11 +2,11 @@
<!--%import("css/editor.css")-->
<!--%import("./lang")-->
<!-- 에디터 활성화 -->
<script type="text/javascript">
var editor_height = '{$editor_path}';
<script type="text/javascript">//<![CDATA[
var editor_height = '{$editor_height}';
var editor_path = "{$editor_path}";
editorInit("{$upload_target_srl}", {$enable_resizable}, {$editor_height});
</script>
//]]></script>
<!-- 자동저장용 폼 -->
<!--@if($enable_autosave)-->

View file

@ -106,6 +106,8 @@ function editorStart(upload_target_srl, resizable, height) {
// 팝업 윈도우일 경우 드래그바 숨김
if(resizable == false) xGetElementById("editor_drag_bar_"+upload_target_srl).style.display = "none";
if(typeof(fixAdminLayoutFooter)=='function') fixAdminLayoutFooter(height);
}
// 여러개의 편집기를 예상하여 전역 배열 변수에 form, iframe의 정보를 넣음
@ -556,7 +558,7 @@ function editorChangeHeader(obj,srl) {
/**
* iframe 세로 크기 조절 드래그 관련
**/
var editorDragObj = {isDrag:false, y:0, obj:null, id:'', det:0}
var editorDragObj = {isDrag:false, y:0, obj:null, id:'', det:0, source_height:0}
xAddEventListener(document, 'mousedown', editorDragStart);
xAddEventListener(document, 'mouseup', editorDragStop);
function editorDragStart(evt) {
@ -571,6 +573,8 @@ function editorDragStart(evt) {
editorDragObj.y = e.pageY;
editorDragObj.obj = e.target;
editorDragObj.id = id.substr('editor_drag_bar_'.length);
var iframe_obj = editorGetIFrame(editorDragObj.id);
editorDragObj.source_height = xHeight(iframe_obj);
xAddEventListener(document, 'mousemove', editorDragMove, false);
xAddEventListener(editorDragObj.obj, 'mousemove', editorDragMove, false);
@ -596,6 +600,9 @@ function editorDragStop(evt) {
xRemoveEventListener(document, 'mousemove', editorDragMove, false);
xRemoveEventListener(editorDragObj.obj, 'mousemove', editorDragMove, false);
var iframe_obj = editorGetIFrame(editorDragObj.id);
if(typeof(fixAdminLayoutFooter)=='function') fixAdminLayoutFooter(xHeight(iframe_obj)-editorDragObj.source_height);
editorDragObj.isDrag = false;
editorDragObj.y = 0;
editorDragObj.obj = null;