mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +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
|
|
@ -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