mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4843 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
32dc218365
commit
a646e771cf
1 changed files with 4 additions and 1 deletions
|
|
@ -413,6 +413,7 @@ function editorChangeMode(mode, editor_sequence) {
|
|||
} else if (editorMode[editor_sequence]=='preview') {
|
||||
// html = xInnerHtml(preview_obj);
|
||||
html = textarea_obj.value;
|
||||
preview_obj.contentWindow.document.body.innerHTML = '';
|
||||
// xAddEventListener(xGetElementById('editor_preview_'+editor_sequence), 'load', function(){setPreviewHeight(editor_sequence)});
|
||||
} else {
|
||||
html = contentDocument.body.innerHTML;
|
||||
|
|
@ -525,5 +526,7 @@ function showPreviewContent(ret_obj,response_tags, params, fo_obj) {
|
|||
}
|
||||
|
||||
function setPreviewHeight(editor_sequence){
|
||||
xHeight('editor_preview_'+editor_sequence,xGetElementById('editor_preview_'+editor_sequence).contentWindow.document.body.scrollHeight+20);
|
||||
var h = xGetElementById('editor_preview_'+editor_sequence).contentWindow.document.body.scrollHeight;
|
||||
if(h < 400) h=400;
|
||||
xHeight('editor_preview_'+editor_sequence,h+20);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue