mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@558 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
13fd8167ec
commit
958975c3a5
8 changed files with 176 additions and 33 deletions
|
|
@ -1,5 +1,5 @@
|
|||
.editor_window {
|
||||
width:550px;
|
||||
width:555px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
|
|
@ -29,12 +29,19 @@
|
|||
|
||||
.body {
|
||||
float:left;
|
||||
width:410px;
|
||||
width:400px;
|
||||
text-align:left;
|
||||
margin:5px;
|
||||
font-size:9pt;
|
||||
}
|
||||
|
||||
#folder_area {
|
||||
clear:left;
|
||||
height:115px;
|
||||
border:1px dotted #DDDDDD;
|
||||
margin:0px 10px 10px 10px;
|
||||
}
|
||||
|
||||
.body label {
|
||||
cursor:pointer;
|
||||
font-size:9pt;
|
||||
|
|
@ -48,7 +55,7 @@
|
|||
}
|
||||
|
||||
.editor_input_long {
|
||||
width:350px;
|
||||
width:380px;
|
||||
height:13px;
|
||||
font-size:9pt;
|
||||
border:1px solid #AAAAAA;
|
||||
|
|
@ -113,6 +120,7 @@ img.bg_preview_color {
|
|||
.editor_color_box {
|
||||
clear:both;
|
||||
height:65px;
|
||||
width:400px;
|
||||
border:1px solid #DDDDDD;
|
||||
padding:2px;
|
||||
margin-bottom:3px;
|
||||
|
|
|
|||
|
|
@ -10,13 +10,34 @@
|
|||
<div class="body"><input type="checkbox" id="quotation_use" value="Y" checked="true" onclick="toggle_folder(this)" /></div>
|
||||
|
||||
<div id="folder_area" style="display:block">
|
||||
<div class="header">{$lang->quotation_opener}</div>
|
||||
<div class="body"><input type="text" class="editor_input_long" id="quotation_opener" value="{$lang->quotation_cmd_opener}" /></div>
|
||||
|
||||
<div class="header">{$lang->quotation_opener}</div>
|
||||
<div class="body"><input type="text" class="editor_input_long" id="quotation_opener" value="{$lang->quotation_cmd_opener}" /></div>
|
||||
<div class="header">{$lang->quotation_closer}</div>
|
||||
<div class="body"><input type="text" class="editor_input_long" id="quotation_closer" value="{$lang->quotation_cmd_closer}" /></div>
|
||||
|
||||
<div class="header">{$lang->quotation_closer}</div>
|
||||
<div class="body"><input type="text" class="editor_input_long" id="quotation_closer" value="{$lang->quotation_cmd_closer}" /></div>
|
||||
<div class="header">{$lang->folder_text_bold}</div>
|
||||
<div class="body"><input type="checkbox" name="bold" value="Y" id="quotation_bold" /> <label for="quotation_bold">{$lang->about_folder_text_bold}</label></div>
|
||||
|
||||
<div class="header">{$lang->folder_text_color}</div>
|
||||
<div class="body">
|
||||
<span>
|
||||
<input type="radio" name="color" value="blue" id="quotation_color_blue" />
|
||||
<label for="quotation_color_blue" class="editor_blue_text">{$lang->folder_text_color_blue}</label>
|
||||
</span>
|
||||
<span>
|
||||
<input type="radio" name="color" value="red" id="quotation_color_red" />
|
||||
<label for="quotation_color_red" class="editor_red_text">{$lang->folder_text_color_red}</label>
|
||||
</span>
|
||||
<span>
|
||||
<input type="radio" name="color" value="yellow" id="quotation_color_yellow" />
|
||||
<label for="quotation_color_yellow" class="editor_yellow_text">{$lang->folder_text_color_yellow}</label>
|
||||
</span>
|
||||
<span>
|
||||
<input type="radio" name="color" value="green" id="quotation_color_green" />
|
||||
<label for="quotation_color_green" class="editor_green_text">{$lang->folder_text_color_green}</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header">{$lang->quotation_padding}</div>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ function getQuotation() {
|
|||
var use_folder = node.getAttribute("use_folder");
|
||||
var folder_opener = node.getAttribute("folder_opener");
|
||||
var folder_closer = node.getAttribute("folder_closer");
|
||||
var bold = node.getAttribute("bold");
|
||||
var color = node.getAttribute("color");
|
||||
var margin = node.getAttribute("margin");
|
||||
var padding = node.getAttribute("padding");
|
||||
var border_style = node.getAttribute("border_style");
|
||||
|
|
@ -24,6 +26,23 @@ function getQuotation() {
|
|||
|
||||
if(use_folder=="Y") xGetElementById("quotation_use").checked = true;
|
||||
else xGetElementById("quotation_use").checked = false;
|
||||
toggle_folder( xGetElementById("quotation_use") );
|
||||
|
||||
if(bold=="Y") xGetElementById("quotation_bold").checked = true;
|
||||
switch(color) {
|
||||
case "red" :
|
||||
xGetElementById("quotation_color_red").checked = true;
|
||||
break;
|
||||
case "yellow" :
|
||||
xGetElementById("quotation_color_yellow").checked = true;
|
||||
break;
|
||||
case "green" :
|
||||
xGetElementById("quotation_color_green").checked = true;
|
||||
break;
|
||||
default :
|
||||
xGetElementById("quotation_color_blue").checked = true;
|
||||
break;
|
||||
}
|
||||
|
||||
xGetElementById("quotation_opener").value = folder_opener;
|
||||
xGetElementById("quotation_closer").value = folder_closer;
|
||||
|
|
@ -65,6 +84,13 @@ function insertQuotation() {
|
|||
var folder_closer = xGetElementById("quotation_closer").value;
|
||||
if(!folder_opener||!folder_closer) use_folder = "N";
|
||||
|
||||
var bold = "N";
|
||||
if(xGetElementById("quotation_bold").checked) bold = "Y";
|
||||
var color = "blue";
|
||||
if(xGetElementById("quotation_color_red").checked) color = "red";
|
||||
if(xGetElementById("quotation_color_yellow").checked) color = "yellow";
|
||||
if(xGetElementById("quotation_color_green").checked) color = "green";
|
||||
|
||||
var margin = parseInt(xGetElementById("quotation_margin").value,10);
|
||||
|
||||
var padding = parseInt(xGetElementById("quotation_padding").value,10);
|
||||
|
|
@ -104,12 +130,29 @@ function insertQuotation() {
|
|||
|
||||
if(!content) content = " ";
|
||||
|
||||
var text = "\n<div editor_component=\"quotation\" class=\"editor_quotation\" use_folder=\""+use_folder+"\" folder_opener=\""+folder_opener+"\" folder_closer=\""+folder_closer+"\" margin=\""+margin+"\" padding=\""+padding+"\" border_style=\""+border_style+"\" border_thickness=\""+border_thickness+"\" border_color=\""+border_color+"\" bg_color=\""+bg_color+"\" style=\""+style+"\">"+content+"</div>\n";
|
||||
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
|
||||
opener.editorReplaceHTML(iframe_obj, text);
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
if(selected_node) {
|
||||
selected_node.setAttribute("use_folder", use_folder);
|
||||
selected_node.setAttribute("folder_opener", folder_opener);
|
||||
selected_node.setAttribute("folder_closer", folder_closer);
|
||||
selected_node.setAttribute("bold", bold);
|
||||
selected_node.setAttribute("color", color);
|
||||
selected_node.setAttribute("margin", margin);
|
||||
selected_node.setAttribute("padding", padding);
|
||||
selected_node.setAttribute("border_style", border_style);
|
||||
selected_node.setAttribute("border_thickness", border_thickness);
|
||||
selected_node.setAttribute("border_color", border_color);
|
||||
selected_node.setAttribute("bg_color", bg_color);
|
||||
selected_node.setAttribute("style", style);
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
} else {
|
||||
var text = "\n<div editor_component=\"quotation\" use_folder=\""+use_folder+"\" folder_opener=\""+folder_opener+"\" folder_closer=\""+folder_closer+"\" bold=\""+bold+"\" color=\""+color+"\" margin=\""+margin+"\" padding=\""+padding+"\" border_style=\""+border_style+"\" border_thickness=\""+border_thickness+"\" border_color=\""+border_color+"\" bg_color=\""+bg_color+"\" style=\""+style+"\">"+content+"</div>\n";
|
||||
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
|
||||
opener.editorReplaceHTML(iframe_obj, text);
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
}
|
||||
|
||||
window.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue