mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1152 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
60db101ad0
commit
f9b03ddcbc
1 changed files with 11 additions and 0 deletions
|
|
@ -22,6 +22,17 @@ function completeGenerateCodeInPage(ret_obj,response_tags,params,fo_obj) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var orig_width = 0;
|
||||||
|
var orig_height = 0;
|
||||||
|
var node = opener.editorPrevNode;
|
||||||
|
if(node) {
|
||||||
|
orig_width = parseInt(xWidth(node),10)-6;
|
||||||
|
orig_height = parseInt(xHeight(node),10)-6;
|
||||||
|
|
||||||
|
plugin_code = plugin_code.replace(/width([^p]+)px/ig,'width:'+orig_width+'px');
|
||||||
|
plugin_code = plugin_code.replace(/height([^p]+)px/ig,'height:'+orig_height+'px');
|
||||||
|
}
|
||||||
|
|
||||||
opener.editorFocus(module_srl);
|
opener.editorFocus(module_srl);
|
||||||
var iframe_obj = opener.editorGetIFrame(module_srl);
|
var iframe_obj = opener.editorGetIFrame(module_srl);
|
||||||
opener.editorReplaceHTML(iframe_obj, plugin_code);
|
opener.editorReplaceHTML(iframe_obj, plugin_code);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue