diff --git a/modules/editor/components/quotation/tpl/popup.css b/modules/editor/components/quotation/tpl/popup.css index 97a79d511..bdd148989 100644 --- a/modules/editor/components/quotation/tpl/popup.css +++ b/modules/editor/components/quotation/tpl/popup.css @@ -29,7 +29,7 @@ .body { float:left; - width:405px; + width:410px; text-align:left; margin:5px; font-size:9pt; @@ -109,3 +109,15 @@ img.bg_preview_color { border:1px solid #000000; background-color:#FFFFFF; } + +.editor_color_box { + clear:both; + height:65px; + border:1px solid #DDDDDD; + padding:2px; + margin-bottom:3px; +} + +.editor_color_input { + clear:both; +} diff --git a/modules/editor/components/quotation/tpl/popup.html b/modules/editor/components/quotation/tpl/popup.html index ec83f9501..716137d34 100644 --- a/modules/editor/components/quotation/tpl/popup.html +++ b/modules/editor/components/quotation/tpl/popup.html @@ -63,12 +63,12 @@
![]() |
@@ -81,12 +81,12 @@
![]() |
@@ -98,7 +98,7 @@
diff --git a/modules/editor/components/quotation/tpl/popup.js b/modules/editor/components/quotation/tpl/popup.js
index df9a08bf3..4847c9409 100644
--- a/modules/editor/components/quotation/tpl/popup.js
+++ b/modules/editor/components/quotation/tpl/popup.js
@@ -3,54 +3,53 @@
* 있으면 가져와서 원하는 곳에 삽입
**/
function getQuotation() {
- return;
// 부모 위지윅 에디터에서 선택된 영역이 있는지 확인
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;
-
+ var use_folder = node.getAttribute("use_folder");
+ var opener = node.getAttribute("opener");
+ var closer = node.getAttribute("closer");
+ var border_style = node.getAttribute("border_style");
+ var border_thickness = node.getAttribute("border_thickness");
+ var border_color = node.getAttribute("border_color");
+ var bg_color = node.getAttribute("bg_color");
}
-function insertQuotation(obj) {
+/* 추가 버튼 클릭시 부모창의 위지윅 에디터에 인용구 추가 */
+function insertQuotation() {
if(typeof(opener)=="undefined") return;
- var url = xGetElementById("_url").value;
+ var use_folder = "N";
+ if(xGetElementById("quotation_user").checked) use_folder = "Y";
- var caption = xGetElementById("multimedia_caption").value;
+ var opener = xGetElementById("quotation_opener").value;
+ var closer = xGetElementById("quotation_closer").value;
+ if(!opener||!closer) use_folder = "N";
- var width = xGetElementById("multimedia_width").value;
- if(!width) width = 640;
+ var border_style = "solid";
+ if(xGetElementById("border_style_none").checked) border_style = "none";
+ if(xGetElementById("border_style_solid").checked) border_style = "solid";
+ if(xGetElementById("border_style_dotted").checked) border_style = "dotted";
+ if(xGetElementById("border_style_left_solid").checked) border_style = "left_solid";
+ if(xGetElementById("border_style_left_dotted").checked) border_style = "left_dotted";
- var height = xGetElementById("multimedia_height").value;
- if(!height) height= 480;
+ var border_thickness = parserInt(xGetElementById("border_thickness").value,10);
- var auto_start = "false";
- if(xGetElementById("multimedia_auto_start").checked) auto_start = "true";
+ var border_color = "#"+xGetElementById("border_color_input").value;
- if(!url) {
- window.close();
- return;
- }
+ var bg_color = "#"+xGetElementById("bg_color_input").value;
- var text = "