mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 10:49:54 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@543 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9e94a95c4a
commit
d8a6852a72
4 changed files with 36 additions and 5 deletions
|
|
@ -69,7 +69,7 @@
|
|||
if(!$height) $height = 480;
|
||||
|
||||
$auto_start = $xml_obj->attrs->auto_start;
|
||||
if(!$auto_start) $auto_start = "false";
|
||||
if($auto_start!="true") $auto_start = "false";
|
||||
else $auto_start = "true";
|
||||
|
||||
$caption = $xml_obj->body;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,28 @@
|
|||
/**
|
||||
* popup으로 열렸을 경우 부모창의 위지윅에디터에 select된 멀티미디어 컴포넌트 코드를 체크하여
|
||||
* 있으면 가져와서 원하는 곳에 삽입
|
||||
**/
|
||||
function getMultimedia() {
|
||||
// 부모 위지윅 에디터에서 선택된 영역이 있는지 확인
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
||||
var node = opener.editorPrevNode;
|
||||
if(!node || node.nodeName != "DIV") return;
|
||||
|
||||
var url = node.getAttribute("src");
|
||||
var caption = xInnerHtml(node);
|
||||
var width = node.getAttribute("width");
|
||||
var height = node.getAttribute("height");
|
||||
var auto_start = node.getAttribute("auto_start");
|
||||
|
||||
xGetElementById("multimedia_url").value = url;
|
||||
xGetElementById("multimedia_caption").value = caption;
|
||||
xGetElementById("multimedia_width").value = width;
|
||||
xGetElementById("multimedia_height").value = height;
|
||||
if(auto_start=="true") xGetElementById("multimedia_auto_start").checked = true;
|
||||
|
||||
}
|
||||
|
||||
function insertMultimedia(obj) {
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
||||
|
|
@ -30,3 +55,5 @@ function insertMultimedia(obj) {
|
|||
|
||||
window.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, "load", getMultimedia);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue