mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
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
This commit is contained in:
parent
3dacfd0393
commit
31e374a44d
2 changed files with 12 additions and 2 deletions
|
|
@ -95,8 +95,13 @@
|
|||
<script type="text/javascript">//<![CDATA[
|
||||
var auto_saved_msg = "{$lang->msg_auto_saved}";
|
||||
var xed_{$editor_sequence};
|
||||
var load_{$editor_sequence} = function() {
|
||||
setEditMode(xed_{$editor_sequence}, "{$editor_height}px", {$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}");
|
||||
xed_{$editor_sequence} = editorStart_xq(xed_{$editor_sequence}, document.getElementById("xqEditor_{$editor_sequence}"), {$editor_sequence}, "{$editor_content_key_name}", "{$editor_height}px", "{$editor_primary_key_name}");
|
||||
xAddEventListener(window, 'load', load_{$editor_sequence});
|
||||
}
|
||||
//]]></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue