에디터의 초기화를 window.onload가 아닌 object가 display되고 난 후로 시점 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3730 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-20 02:18:59 +00:00
parent 4c94983b96
commit 6b6013fddb
6 changed files with 34 additions and 37 deletions

View file

@ -10,16 +10,6 @@
<!--%import("js/xquared-min.js")-->
<!--%import("js/xe_interface.js")-->
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var auto_saved_msg = "{$lang->msg_auto_saved}";
var xed_{$editor_sequence};
xAddEventListener(window, 'load', function() {
if(document.getElementById("comment_{$editor_sequence}") == null || document.getElementById("comment_{$editor_sequence}").style.display != 'none'){
editorStart_xq(xed_{$editor_sequence}, document.getElementById("xqEditor_{$editor_sequence}"), {$editor_sequence}, "{$editor_content_key_name}", "{$editor_height}px", "{$editor_primary_key_name}");
}});
//]]></script>
<!-- 자동저장용 폼 -->
<!--@if($enable_autosave)-->
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
@ -92,3 +82,12 @@
</div>
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var auto_saved_msg = "{$lang->msg_auto_saved}";
var xed_{$editor_sequence};
if(document.getElementById("comment_{$editor_sequence}") == null || document.getElementById("comment_{$editor_sequence}").style.display != 'none') {
editorStart_xq(xed_{$editor_sequence}, document.getElementById("xqEditor_{$editor_sequence}"), {$editor_sequence}, "{$editor_content_key_name}", "{$editor_height}px", "{$editor_primary_key_name}");
}
//]]></script>