git-svn-id: http://xe-core.googlecode.com/svn/trunk@526 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-19 03:32:52 +00:00
parent f61c19760c
commit 7f13b0e585
8 changed files with 102 additions and 62 deletions

View file

@ -0,0 +1,14 @@
<?php
/**
* @file /modules/editor/components/image_link/lang/ko.lang.php
* @author zero <zero@nzeo.com>
* @brief 위지윅에디터(editor) 모듈 > 이미지링크(image_link) 컴포넌트의 언어팩
**/
$lang->image_url = "이미지 경로";
$lang->image_align = "정렬";
$lang->image_align_normal = "한 문단을 차지";
$lang->image_align_left = "글의 왼쪽으로";
$lang->image_align_middle = "가운데";
$lang->image_align_right = "글의 우측으로";
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

View file

@ -1,9 +1,46 @@
#emoticon_area { .editor_window {
width:230px; width:400px;
padding:10px 0px 10px 0px;
text-align:center; text-align:center;
} }
#emoticon_area img { .header {
margin:2px; float:left;
width:100px;
clear:left;
text-align:left;
font-weight:bold;
margin:5px;
}
.body {
float:left;
width:250px;
text-align:left;
margin:5px;
font-size:9pt;
}
.body label {
cursor:pointer;
}
.image_align {
margin:0px 0px 5px 0px;
}
.image_url {
width:240px;
border:1px solid #AAAAAA;
}
.editor_button_area {
clear:both;
text-align:center;
margin:5px;
}
.editor_button {
margin-top:4px;
background-color:#FFFFFF;
border:1px solid #AAAAAA;
} }

View file

@ -1,56 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--%import("popup.js")-->
<html> <!--%import("popup.css")-->
<head> <!--%import("../lang")-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>add Image</title>
<link rel='stylesheet' href='../css/editor.css' type='text/css' />
<script type='text/javascript' src='../../common/js/x.js'></script>
<script type='text/javascript' src='../../common/js/common.js'></script>
<script type='text/javascript' src='../js/editor.js'></script>
<script type='text/javascript'>
function insertImage() {
if(typeof(opener)=='undefined') return;
var fo_obj = xGetElementById("fo"); <div class="editor_window">
var url = fo_obj.url.value; <form action='./' method='post' id='fo' onSubmit="return false">
var align = fo_obj.align.options[fo_obj.align.selectedIndex].value; <div class="header">{$lang->image_url}</div>
if(url) { <div class="body"><input type="text" class="image_url" id="image_url" value="" /></div>
opener.editorInsertImage(url, align); <div class="header">{$lang->image_align}</div>
opener.editorFocus(opener.editorPrevSrl); <div class="body">
} <div class="image_align">
self.close(); <input type="radio" name="align" value="normal" id="align_normal" checked="true"/>
} <label for="align_normal">
xAddEventListener(window, 'load', setFixedPopupSize); <img src="./images/align_normal.gif" alt="{$lang->image_align_normal}" />
</script> {$lang->image_align_normal}
</head> </label>
<body class="editor_pop_body"> </div>
<form action='./' method='post' id="fo" onSubmit="return false" style="display:inline"> <div class="image_align">
<div id='zone_AddUrl' class="editor_window"> <input type="radio" name="align" value="left" id="align_left" />
<table width="380" border="0" cellspacing="1" cellpadding="0"> <label for="align_left">
<col width="50" /> <img src="./images/align_left.gif" alt="{$lang->image_align_left}" />
<col width="*" /> {$lang->image_align_left}
<tr> </label>
<td class="editor_field">url</td> </div>
<td><input type='text' name='url' class="editor_input" value='<?=$_GET['file_url']?>'/></td> <div class="image_align">
</tr> <input type="radio" name="align" value="middle" id="align_middle" />
<tr> <label for="align_middle">
<td class="editor_field">type</td> <img src="./images/align_middle.gif" alt="{$lang->image_align_middle}" />
<td> {$lang->image_align_middle}
<select name='align'> </label>
<option value=''>normal</option> </div>
<option value='left'>left</option> <div class="image_align">
<option value='right'>right</option> <input type="radio" name="align" value="right" id="align_right" />
</select> <label for="align_right">
</td> <img src="./images/align_right.gif" alt="{$lang->image_align_right}" />
</tr> {$lang->image_align_right}
<tr> </label>
<td colspan="2" height="40"> </div>
<input type='button' class="editor_submit" value='Insert' onClick='insertImage()' /> </div>
</td> <div class="editor_button_area">
</tr> <input type='button' value='{$lang->cmd_insert}' class="editor_button" onclick='insertHtml()' />
</table> <input type='button' value='{$lang->cmd_close}' class="editor_button" onclick='window.close();' />
</div> </div>
</form> </form>
</div>
</body>
</html>

View file

@ -1,7 +1,7 @@
function insertEmoticon(obj) { function insertImage(obj) {
if(typeof(opener)=='undefined') return; if(typeof(opener)=='undefined') return;
var text = "<img src=\""+obj.src+"\" border=\"0\" alt=\"emoticon\" />"; var text = "<img src=\""+obj.src+"\" border=\"0\" alt=\""+caption+"\" />";
opener.editorFocus(opener.editorPrevSrl); opener.editorFocus(opener.editorPrevSrl);