mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
에디터의 초기화를 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:
parent
4c94983b96
commit
6b6013fddb
6 changed files with 34 additions and 37 deletions
|
|
@ -116,6 +116,7 @@
|
|||
<div class="signature">{$oDocument->getSignature()}</div>
|
||||
<!--@end-->
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,16 +5,6 @@
|
|||
<!--%import("../../tpl/js/editor_common.js")-->
|
||||
<!--%import("../../tpl/js/editor.js")-->
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var editor_path = "{$editor_path}";
|
||||
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}", '{$editor_height}' ) } );
|
||||
<!--@end-->
|
||||
//]]></script>
|
||||
|
||||
<!-- 자동저장용 폼 -->
|
||||
<!--@if($enable_autosave)-->
|
||||
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
|
||||
|
|
@ -186,3 +176,13 @@
|
|||
</div>
|
||||
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var editor_path = "{$editor_path}";
|
||||
var auto_saved_msg = "{$lang->msg_auto_saved}";
|
||||
|
||||
<!--@if(!$editor_manual_start)-->
|
||||
editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' );
|
||||
<!--@end-->
|
||||
//]]></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,15 +6,6 @@
|
|||
<!--%import("../../tpl/js/editor.js")-->
|
||||
<!--%import("js/editor.js")-->
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var editor_path = "{$editor_path}";
|
||||
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}", '{$editor_height}' ) } );
|
||||
<!--@end-->
|
||||
//]]></script>
|
||||
|
||||
<!-- 자동저장용 폼 -->
|
||||
<!--@if($enable_autosave)-->
|
||||
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
|
||||
|
|
@ -173,3 +164,13 @@
|
|||
</table>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var editor_path = "{$editor_path}";
|
||||
var auto_saved_msg = "{$lang->msg_auto_saved}";
|
||||
<!--@if(!$editor_manual_start)-->
|
||||
editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' );
|
||||
<!--@end-->
|
||||
//]]></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -5,11 +5,6 @@
|
|||
<!--%import("../../tpl/js/editor_common.js")-->
|
||||
<!--%import("js/xe_interface.js")-->
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
xAddEventListener(window,'load', function() { editorStartTextarea({$editor_sequence}, "{$editor_content_key_name}", "{$editor_primary_key_name}"); });
|
||||
//]]></script>
|
||||
|
||||
|
||||
<!-- 에디터 -->
|
||||
<div class="xeTextareaEditor">
|
||||
|
|
@ -17,3 +12,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
editorStartTextarea({$editor_sequence}, "{$editor_content_key_name}", "{$editor_primary_key_name}");
|
||||
//]]></script>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -117,9 +117,6 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height) {
|
|||
var contentHtml = ''+
|
||||
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
|
||||
'<html lang="ko" xmlns="http://www.w3.org/1999/xhtml><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/>'+
|
||||
//'<base href="'+request_uri+'" />'+
|
||||
//'<link rel="stylesheet" href="'+request_uri+'common/css/default.css" type="text/css" />'+
|
||||
//'<link rel="stylesheet" href="'+request_uri+editor_path+'css/editor.css" type="text/css" />'+
|
||||
'<style type="text/css">'+
|
||||
'body {font-size:9pt;height:'+editor_height+'px; padding:5px; margin:0; background-color:transparent; line-height:140%;}'+
|
||||
'</style>'+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue