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@698 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4891ba3a61
commit
d38cdb1018
9 changed files with 64 additions and 46 deletions
|
|
@ -33,7 +33,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
$plugin_code = sprintf('<div plugin="%s" %s></div>', $plugin, implode(' ',$attribute));
|
||||
$blank_img_path = "./common/tpl/images/blank.gif";
|
||||
$plugin_code = sprintf('<img src="%s" class="zbxe_plugin_output" plugin="%s" %s style="width:100px;height:100px;"/>', $blank_img_path, $plugin, implode(' ',$attribute));
|
||||
|
||||
// 코드 출력
|
||||
$this->add('plugin_code', $plugin_code);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<filter name="generate_code_in_page" module="plugin" act="procGenerateCode">
|
||||
<response callback_func="completeGenerateCodeInPage">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="plugin_code" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -5,3 +5,19 @@ function completeGenerateCode(ret_obj) {
|
|||
var zone = xGetElementById("plugin_code");
|
||||
zone.value = plugin_code;
|
||||
}
|
||||
|
||||
/* 생성된 코드를 에디터에 출력 */
|
||||
function completeGenerateCodeInPage(ret_obj,response_tags,params,fo_obj) {
|
||||
var plugin_code = ret_obj["plugin_code"];
|
||||
var module_srl = fo_obj.module_srl.value;
|
||||
|
||||
if(!opener || !plugin_code || !module_srl) {
|
||||
window.close();
|
||||
return;
|
||||
}
|
||||
|
||||
opener.editorFocus(module_srl);
|
||||
var iframe_obj = opener.editorGetIFrame(module_srl);
|
||||
opener.editorReplaceHTML(iframe_obj, plugin_code);
|
||||
opener.editorFocus(module_srl);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
<!--%import("filter/generate_code.xml")-->
|
||||
<!--%import("filter/generate_code_in_page.xml")-->
|
||||
<!--%import("js/admin.js")-->
|
||||
<!--%import("css/plugin.css")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, generate_code);">
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, generate_code_in_page);">
|
||||
<input type="hidden" name="selected_plugin" value="{$selected_plugin}" />
|
||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||
|
||||
<div class="plugin_detail_info_window">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue