mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@729 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a044312f74
commit
c812b59861
1 changed files with 19 additions and 1 deletions
|
|
@ -323,9 +323,27 @@ function editorSearchComponent(evt) {
|
||||||
var e = new xEvent(evt);
|
var e = new xEvent(evt);
|
||||||
|
|
||||||
editorPrevNode = null;
|
editorPrevNode = null;
|
||||||
|
var obj = e.target;
|
||||||
|
|
||||||
|
// 플러그인인지 일단 체크
|
||||||
|
if(obj.getAttribute("plugin")) {
|
||||||
|
// upload_target_srl을 찾음
|
||||||
|
var tobj = obj;
|
||||||
|
while(tobj && tobj.nodeName != "BODY") {
|
||||||
|
tobj = xParent(tobj);
|
||||||
|
}
|
||||||
|
if(!tobj || tobj.nodeName != "BODY" || !tobj.getAttribute("upload_target_srl")) {
|
||||||
|
editorPrevNode = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var upload_target_srl = tobj.getAttribute("upload_target_srl");
|
||||||
|
var plugin = obj.getAttribute("plugin");
|
||||||
|
winopen("?module=plugin&act=dispGenerateCodeInPage&selected_plugin="+plugin+"&module_srl="+upload_target_srl,'GenerateCodeInPage','left=10,top10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 선택되어진 object부터 상단으로 이동하면서 editor_component attribute가 있는지 검사
|
// 선택되어진 object부터 상단으로 이동하면서 editor_component attribute가 있는지 검사
|
||||||
var obj = e.target;
|
|
||||||
if(!obj.getAttribute("editor_component")) {
|
if(!obj.getAttribute("editor_component")) {
|
||||||
while(obj && !obj.getAttribute("editor_component")) {
|
while(obj && !obj.getAttribute("editor_component")) {
|
||||||
if(obj.parentElement) obj = obj.parentElement;
|
if(obj.parentElement) obj = obj.parentElement;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue