From 31e374a44de3cae93fa0616e0b88f031419d00f7 Mon Sep 17 00:00:00 2001 From: haneul Date: Wed, 26 Nov 2008 09:34:43 +0000 Subject: [PATCH] 17491457 : fix by calling setEditMode function of xquared in onload event of window git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5000 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/skins/xquared/editor.html | 7 ++++++- modules/editor/skins/xquared/javascripts/xe_interface.js | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/editor/skins/xquared/editor.html b/modules/editor/skins/xquared/editor.html index 5aa6e3ef2..fc9ed7e43 100644 --- a/modules/editor/skins/xquared/editor.html +++ b/modules/editor/skins/xquared/editor.html @@ -95,8 +95,13 @@ diff --git a/modules/editor/skins/xquared/javascripts/xe_interface.js b/modules/editor/skins/xquared/javascripts/xe_interface.js index d19d909e7..13a0aea26 100644 --- a/modules/editor/skins/xquared/javascripts/xe_interface.js +++ b/modules/editor/skins/xquared/javascripts/xe_interface.js @@ -62,6 +62,10 @@ function editorStart_xq(editor, element, editor_sequence, content_key, editor_he editor.setStaticContent(fo_obj[content_key].value); editor.config.imagePathForDefaultToolbar = request_uri+editor_path+'images/toolbar/'; editor.config.contentCssList = [request_uri+editor_path+"/stylesheets/xq_contents.css"]; + return editor; +} + +function setEditMode(editor, editor_height, editor_sequence) { editor.setEditMode('wysiwyg'); editor.getFrame().style.width = "100%"; editor.getFrame().parentNode.style.height = editor_height; @@ -73,7 +77,8 @@ function editorStart_xq(editor, element, editor_sequence, content_key, editor_he xAddEventListener(editor.getFrame().contentWindow.document,'dblclick',editorSearchComponent); } catch(e) { } - + + var fo_obj = editorGetForm_xq(xq.$("xqEditor_"+editor_sequence)); if(typeof(fo_obj._saved_doc_title)!="undefined" ) editorEnableAutoSave(fo_obj, editor_sequence); }