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 {
width:230px;
padding:10px 0px 10px 0px;
.editor_window {
width:400px;
text-align:center;
}
#emoticon_area img {
margin:2px;
.header {
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">
<html>
<head>
<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;
<!--%import("popup.js")-->
<!--%import("popup.css")-->
<!--%import("../lang")-->
var fo_obj = xGetElementById("fo");
var url = fo_obj.url.value;
var align = fo_obj.align.options[fo_obj.align.selectedIndex].value;
if(url) {
opener.editorInsertImage(url, align);
opener.editorFocus(opener.editorPrevSrl);
}
self.close();
}
xAddEventListener(window, 'load', setFixedPopupSize);
</script>
</head>
<body class="editor_pop_body">
<form action='./' method='post' id="fo" onSubmit="return false" style="display:inline">
<div id='zone_AddUrl' class="editor_window">
<table width="380" border="0" cellspacing="1" cellpadding="0">
<col width="50" />
<col width="*" />
<tr>
<td class="editor_field">url</td>
<td><input type='text' name='url' class="editor_input" value='<?=$_GET['file_url']?>'/></td>
</tr>
<tr>
<td class="editor_field">type</td>
<td>
<select name='align'>
<option value=''>normal</option>
<option value='left'>left</option>
<option value='right'>right</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" height="40">
<input type='button' class="editor_submit" value='Insert' onClick='insertImage()' />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
<div class="editor_window">
<form action='./' method='post' id='fo' onSubmit="return false">
<div class="header">{$lang->image_url}</div>
<div class="body"><input type="text" class="image_url" id="image_url" value="" /></div>
<div class="header">{$lang->image_align}</div>
<div class="body">
<div class="image_align">
<input type="radio" name="align" value="normal" id="align_normal" checked="true"/>
<label for="align_normal">
<img src="./images/align_normal.gif" alt="{$lang->image_align_normal}" />
{$lang->image_align_normal}
</label>
</div>
<div class="image_align">
<input type="radio" name="align" value="left" id="align_left" />
<label for="align_left">
<img src="./images/align_left.gif" alt="{$lang->image_align_left}" />
{$lang->image_align_left}
</label>
</div>
<div class="image_align">
<input type="radio" name="align" value="middle" id="align_middle" />
<label for="align_middle">
<img src="./images/align_middle.gif" alt="{$lang->image_align_middle}" />
{$lang->image_align_middle}
</label>
</div>
<div class="image_align">
<input type="radio" name="align" value="right" id="align_right" />
<label for="align_right">
<img src="./images/align_right.gif" alt="{$lang->image_align_right}" />
{$lang->image_align_right}
</label>
</div>
</div>
<div class="editor_button_area">
<input type='button' value='{$lang->cmd_insert}' class="editor_button" onclick='insertHtml()' />
<input type='button' value='{$lang->cmd_close}' class="editor_button" onclick='window.close();' />
</div>
</form>
</div>

View file

@ -1,7 +1,7 @@
function insertEmoticon(obj) {
function insertImage(obj) {
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);