mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 10:19:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@533 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
69979f99ea
commit
512228ffe7
7 changed files with 94 additions and 27 deletions
|
|
@ -7,4 +7,15 @@
|
|||
|
||||
$lang->urllink_title = "제목";
|
||||
$lang->urllink_url = "URL";
|
||||
$lang->urllink_open_window = "새창열기";
|
||||
$lang->urllink_bold = " 글자 굵게";
|
||||
|
||||
$lang->urllink_color = "링크 색상 ";
|
||||
$lang->urllink_color_blue = "파란색";
|
||||
$lang->urllink_color_red = "붉은색";
|
||||
$lang->urllink_color_yellow = "노란색";
|
||||
$lang->urllink_color_green = "녹색";
|
||||
|
||||
$lang->about_url_link_open_window = "선택하시면 링크 선택시 새창으로 열립니다";
|
||||
$lang->about_url_link_bold = "선택하시면 링크의 글자가 굵게 표시됩니다";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,9 @@
|
|||
.editor_button_area {
|
||||
clear:both;
|
||||
text-align:center;
|
||||
margin:5px;
|
||||
background-color:#EEEEEE;
|
||||
padding-top:5px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.editor_button {
|
||||
|
|
|
|||
|
|
@ -9,9 +9,35 @@
|
|||
<div class="header">{$lang->urllink_url}</div>
|
||||
<div class="body"><input type="text" name="url" class="editor_input" value=""/></div>
|
||||
|
||||
<div class="editor_button_area">
|
||||
<input type="button" class="editor_button" value="{$lang->cmd_insert}" onclick="setText()" />
|
||||
<input type="button" class="editor_button" value="{$lang->cmd_close}" onclick="window.close()" />
|
||||
<div class="header">{$lang->urllink_open_window}</div>
|
||||
<div class="body"><input type="checkbox" name="open_window" value="Y" id="editor_open_window" /> <label for="editor_open_window">{$lang->about_url_link_open_window}</label></div>
|
||||
|
||||
<div class="header">{$lang->urllink_bold}</div>
|
||||
<div class="body"><input type="checkbox" name="bold" value="Y" id="editor_bold" /> <label for="editor_bold">{$lang->about_url_link_bold}</label></div>
|
||||
|
||||
<div class="header">{$lang->urllink_color}</div>
|
||||
<div class="body">
|
||||
<span>
|
||||
<input type="radio" name="color" value="blue" id="color_blue" />
|
||||
<label for="color_blue"><a href="#" class="editor_blue_text">{$lang->urllink_color_blue}</a></label>
|
||||
</span>
|
||||
<span>
|
||||
<input type="radio" name="color" value="red" id="color_red" />
|
||||
<label for="color_red"><a href="#" class="editor_red_text">{$lang->urllink_color_red}</a></label>
|
||||
</span>
|
||||
<span>
|
||||
<input type="radio" name="color" value="yellow" id="color_yellow" />
|
||||
<label for="color_yellow"><a href="#" class="editor_yellow_text">{$lang->urllink_color_yellow}</a></label>
|
||||
</span>
|
||||
<span>
|
||||
<input type="radio" name="color" value="green" id="color_green" />
|
||||
<label for="color_green"><a href="#" class="editor_green_text">{$lang->urllink_color_green}</a></label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="editor_button_area">
|
||||
<input type="button" class="editor_button" value="{$lang->cmd_insert}" onclick="setText()" />
|
||||
<input type="button" class="editor_button" value="{$lang->cmd_close}" onclick="window.close()" />
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -21,15 +21,43 @@ function setText() {
|
|||
|
||||
var text = fo_obj.text.value;
|
||||
var url = fo_obj.url.value;
|
||||
var open_window = false;
|
||||
var bold = false;
|
||||
var link_class = "";
|
||||
|
||||
var link = text;
|
||||
if(url) link = "<a href=\""+url+"\" target=\"_blank\">"+text+"</a>";
|
||||
if(!text) {
|
||||
window.close();
|
||||
return;
|
||||
}
|
||||
|
||||
if(fo_obj.open_window.checked) open_window = true;
|
||||
if(fo_obj.bold.checked) bold= true;
|
||||
if(xGetElementById("color_blue").checked) link_class = "editor_blue_text";
|
||||
else if(xGetElementById("color_red").checked) link_class = "editor_red_text";
|
||||
else if(xGetElementById("color_yellow").checked) link_class = "editor_yellow_text";
|
||||
else if(xGetElementById("color_green").checked) link_class = "editor_green_text";
|
||||
|
||||
var link = "";
|
||||
if(open_window) {
|
||||
link = "<a href=\"#\" onclick=\"window.open('"+url+"');return false;\" ";
|
||||
} else {
|
||||
link = "<a href=\""+url+"\" ";
|
||||
}
|
||||
|
||||
if(bold || link_class) {
|
||||
var class_name = "";
|
||||
if(bold) class_name = "bold";
|
||||
if(link_class) class_name += " "+link_class;
|
||||
link += " class=\""+class_name+"\" ";
|
||||
}
|
||||
|
||||
link += ">"+text+"</a>";
|
||||
|
||||
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
|
||||
opener.editorReplaceHTML(iframe_obj, link);
|
||||
|
||||
opener.focus();
|
||||
self.close();
|
||||
window.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, "load", getText);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!--%import("./js/editor.js")-->
|
||||
<!--%import("./css/editor.css")-->
|
||||
<!--%import("js/editor.js")-->
|
||||
<!--%import("css/editor.css")-->
|
||||
<!--%import("./lang")-->
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ function editorStart(upload_target_srl) {
|
|||
var contentHtml = ''+
|
||||
//'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'+
|
||||
'<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/>'+
|
||||
'<link rel="stylesheet" href="./common/css/common.css" type="text/css" />'+
|
||||
'<link rel="stylesheet" href="./common/css/default.css" type="text/css" />'+
|
||||
'<link rel="stylesheet" href="'+editor_path+'/css/editor.css" type="text/css" />'+
|
||||
'</head><body style="background-color:#FFFFFF;font-family:'+default_font+';font-size:9pt;">'+
|
||||
content+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue