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

This commit is contained in:
zero 2007-03-20 08:59:02 +00:00
parent ba7c2e3b02
commit 1d5e065dac
4 changed files with 68 additions and 1 deletions

View file

@ -30,6 +30,12 @@
<option value="6">24pt</option>
<option value="7">36pt</option>
</select>
<select onChange="editorChangeHeader(this,'{$upload_target_srl}')" id="editor_header_{$upload_target_srl}">
<option value="">{$lang->edit->header}</option>
<!--@foreach($lang->edit->header_list as $key=>$obj)-->
<option value="{$key}">{$obj}</option>
<!--@end-->
</select>
</div>
<!-- 에디팅 관련 아이콘 -->

View file

@ -52,7 +52,7 @@ function editorStart(upload_target_srl) {
'<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/>'+
'<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;" upload_target_srl="'+upload_target_srl+'">'+
'</head><body style="background-color:#FFFFFF;font-family:'+default_font+';" upload_target_srl="'+upload_target_srl+'">'+
content+
'</body></html>'+
'';
@ -396,6 +396,14 @@ function editorChangeFontSize(obj,srl) {
obj.selectedIndex = 0;
}
function editorChangeHeader(obj,srl) {
var value = obj.options[obj.selectedIndex].value;
if(!value) return;
value = "<"+value+">";
editorDo('formatblock',value,srl);
obj.selectedIndex = 0;
}
function editorDoInsertUrl(link, upload_target_srl) {
editorFocus(upload_target_srl);
var iframe_obj = editorGetIFrame(srl);

View file

@ -19,6 +19,16 @@
"Arial",
);
$lang->edit->header = "형식";
$lang->edit->header_list = array(
"h1" => "큰 제목 (h1)",
"h2" => "중간 제목 (h2)",
"h3" => "작은 제목 (h3)",
"h4" => "제목 (h4)",
"h5" => "일반 (h5)",
"h6" => "작은글 (h6)",
);
$lang->edit->image_url = '이미지 경로';
$lang->edit->multimedia_url = '멀티미디어 경로';