git-svn-id: http://xe-core.googlecode.com/svn/trunk@473 201d5d3c-b55e-5fd7-737f-ddc643e51545
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">
|
||||
var editor_path = "{$editor_path}";
|
||||
var editor_path = "./editor/";
|
||||
editorInit("{$upload_target_srl}");
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -225,51 +225,44 @@ function editorEventCheck(evt) {
|
|||
case "addemoticon" :
|
||||
var x = (screen.availWidth - 225)/2;
|
||||
var y = (screen.availHeight - 150)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/add_emoticon.php","_editorPopup","top="+y+",left="+x+",width=225,height=150,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/add_emoticon.php","_editorPopup","top="+y+",left="+x+",width=50,height=50,resizable=no,toolbars=no,scrollbars=no");
|
||||
return;
|
||||
break;
|
||||
case "quotation" :
|
||||
var x = (screen.availWidth - 400)/2;
|
||||
var y = (screen.availHeight - 400)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/add_quotation.php","_editorPopup","top="+y+",left="+x+",width=400,height=400,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/add_quotation.php","_editorPopup","top="+y+",left="+x+",width=50,height=50,resizable=no,toolbars=no,scrollbars=no");
|
||||
return;
|
||||
break;
|
||||
case "addurl" :
|
||||
var x = (screen.availWidth - 400)/2;
|
||||
var y = (screen.availHeight - 220)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/add_url.php","_editorPopup","top="+y+",left="+x+",width=400,height=220,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/add_url.php","_editorPopup","top="+y+",left="+x+",width=50,height=50,resizable=no,toolbars=no,scrollbars=no");
|
||||
return;
|
||||
break;
|
||||
case "addimage" :
|
||||
var x = (screen.availWidth - 420)/2;
|
||||
var y = (screen.availHeight - 80)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/add_image.php","_editorPopup","top="+y+",left="+x+",width=420,height=80,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/add_image.php","_editorPopup","top="+y+",left="+x+",width=50,height=50,resizable=no,toolbars=no,scrollbars=no");
|
||||
return;
|
||||
break;
|
||||
case "addmultimedia" :
|
||||
var x = (screen.availWidth - 400)/2;
|
||||
var y = (screen.availHeight - 220)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/add_multi.php","_editorPopup","top="+y+",left="+x+",width=420,height=110,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/add_multi.php","_editorPopup","top="+y+",left="+x+",width=50,height=50,resizable=no,toolbars=no,scrollbars=no");
|
||||
return;
|
||||
break;
|
||||
case "addhtml" :
|
||||
var x = (screen.availWidth - 400)/2;
|
||||
var y = (screen.availHeight - 500)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/add_html.php","_editorPopup","top="+y+",left="+x+",width=400,height=500,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/add_html.php","_editorPopup","top="+y+",left="+x+",width=50,height=50,resizable=no,toolbars=no,scrollbars=no");
|
||||
return;
|
||||
break;
|
||||
case "ForeColor" :
|
||||
case "BackColor" :
|
||||
var x = (screen.availWidth - 145)/2;
|
||||
var y = (screen.availHeight - 95)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/color_box.php?mode="+method_name,"_editorPopup","top="+y+",left="+x+",width=145,height=95,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/color_box.php?mode="+method_name,"_editorPopup","top="+y+",left="+x+",width=50,height=50,resizable=no,toolbars=no,scrollbars=no");
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
@ -699,8 +692,7 @@ function editor_insert_file(upload_target_srl, align) {
|
|||
|
||||
var x = (screen.availWidth - 400)/2;
|
||||
var y = (screen.availHeight - 220)/2;
|
||||
var editor_popup = window.open(editor_path+"popup/add_url.php?title="+escape(filename)+"&url="+escape(url),"_editorPopup","top="+y+",left="+x+",width=400,height=220,resizable=no,toolbars=no,scrollbars=no");
|
||||
if(editor_popup) editor_popup.focus();
|
||||
winopen(editor_path+"popup/add_url.php?title="+escape(filename)+"&url="+escape(url),"_editorPopup","top="+y+",left="+x+",width=400,height=220,resizable=no,toolbars=no,scrollbars=no");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,16 +3,17 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>add Emoticon</title>
|
||||
<link rel='stylesheet' href='../editor.css' type='text/css' />
|
||||
<script type='text/javascript' src='../../../common/js/x.js'></script>
|
||||
<script type='text/javascript' src='../editor.js'></script>
|
||||
<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 editorPrintEmoticon() {
|
||||
var html = '';
|
||||
for(var i=1;i<=40;i++) {
|
||||
var str = i;
|
||||
if(i<10) str = '0'+i;
|
||||
html += "<img src=\"../images/emoticon/msn0"+str+".gif\" onFocus=\"this.blur()\" style=\"margin:2px;width:19px;height:19px;cursor:pointer;border:1px solid;border-color:#CCCCCC;\" onMouseOver=\"this.style.borderColor='#ffffff'\" onMouseOut=\"this.style.borderColor='#CCCCCC'\" onClick=\"insertImage(this)\" />";
|
||||
html += "<img src=\"./emoticon/msn0"+str+".gif\" onFocus=\"this.blur()\" style=\"margin:2px;width:19px;height:19px;cursor:pointer;border:1px solid;border-color:#CCCCCC;\" onMouseOver=\"this.style.borderColor='#ffffff'\" onMouseOut=\"this.style.borderColor='#CCCCCC'\" onClick=\"insertImage(this)\" />";
|
||||
if(i%8==0) html += "<br />";
|
||||
}
|
||||
document.write(html);
|
||||
|
|
@ -25,11 +26,13 @@
|
|||
opener.editorFocus(opener.editorPrevSrl);
|
||||
self.close();
|
||||
}
|
||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
||||
</script>
|
||||
</head>
|
||||
<body class="editor_pop_body">
|
||||
<script type="text/javascript">
|
||||
editorPrintEmoticon();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -3,9 +3,10 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Edit Html</title>
|
||||
<link rel='stylesheet' href='../editor.css' type='text/css' />
|
||||
<script type='text/javascript' src='../../../common/js/x.js'></script>
|
||||
<script type='text/javascript' src='../editor.js'></script>
|
||||
<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 setText() {
|
||||
if(typeof(opener)=='undefined') return;
|
||||
|
|
@ -25,6 +26,7 @@
|
|||
self.close();
|
||||
}
|
||||
xAddEventListener(window, 'load', setText);
|
||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
||||
</script>
|
||||
</head>
|
||||
<body class="editor_pop_body">
|
||||
|
|
@ -3,9 +3,10 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>add Image</title>
|
||||
<link rel='stylesheet' href='../editor.css' type='text/css' />
|
||||
<script type='text/javascript' src='../../../common/js/x.js'></script>
|
||||
<script type='text/javascript' src='../editor.js'></script>
|
||||
<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;
|
||||
|
|
@ -19,7 +20,7 @@
|
|||
}
|
||||
self.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
||||
</script>
|
||||
</head>
|
||||
<body class="editor_pop_body">
|
||||
|
|
@ -3,9 +3,10 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>add Multimedia</title>
|
||||
<link rel='stylesheet' href='../editor.css' type='text/css' />
|
||||
<script type='text/javascript' src='../../../common/js/x.js'></script>
|
||||
<script type='text/javascript' src='../editor.js'></script>
|
||||
<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 insertMultimedia() {
|
||||
if(typeof(opener)=='undefined') return;
|
||||
|
|
@ -20,6 +21,7 @@
|
|||
opener.focus();
|
||||
self.close();
|
||||
}
|
||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
||||
</script>
|
||||
</head>
|
||||
<body class="editor_pop_body">
|
||||
|
|
@ -3,9 +3,10 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>add Quotation</title>
|
||||
<link rel='stylesheet' href='../editor.css' type='text/css' />
|
||||
<script type='text/javascript' src='../../../common/js/x.js'></script>
|
||||
<script type='text/javascript' src='../editor.js'></script>
|
||||
<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'>
|
||||
var color_list = new Array('000000','993300','333300','003300','003366','000080','333399','333333','800000','FF6600','808000','008000','008080','0000FF','666699','808080','FF0000','FF9900','99CC00','339966','33CCCC','3366FF','800080','969696','FF00FF','FFCC00','FFFF00','00FF00','00FFFF','00CCFF','993366','c0c0c0','FF99CC','FFCC99','FFFF99','CCFFCC','CCFFFF','99CCFF','CC99FF','FFFFFF');
|
||||
|
||||
|
|
@ -124,6 +125,7 @@
|
|||
self.close();
|
||||
}
|
||||
xAddEventListener(window, 'load', setText);
|
||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
||||
</script>
|
||||
</head>
|
||||
<body class="editor_pop_body">
|
||||
|
|
@ -3,9 +3,10 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>add Url</title>
|
||||
<link rel="stylesheet" href="../editor.css" type="text/css" />
|
||||
<script type="text/javascript" src="../../../common/js/x.js"></script>
|
||||
<script type="text/javascript" src="../editor.js"></script>
|
||||
<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 setText() {
|
||||
if(typeof(opener)=="undefined") return;
|
||||
|
|
@ -30,6 +31,7 @@
|
|||
self.close();
|
||||
}
|
||||
xAddEventListener(window, "load", setText);
|
||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
||||
</script>
|
||||
</head>
|
||||
<body class="editor_pop_body">
|
||||
|
|
@ -3,9 +3,10 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>change Color</title>
|
||||
<link rel='stylesheet' href='../editor.css' type='text/css' />
|
||||
<script type='text/javascript' src='../../../common/js/x.js'></script>
|
||||
<script type='text/javascript' src='../editor.js'></script>
|
||||
<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'>
|
||||
var color_list = new Array('000000','993300','333300','003300','003366','000080','333399','333333','800000','FF6600','808000','008000','008080','0000FF','666699','808080','FF0000','FF9900','99CC00','339966','33CCCC','3366FF','800080','969696','FF00FF','FFCC00','FFFF00','00FF00','00FFFF','00CCFF','993366','c0c0c0','FF99CC','FFCC99','FFFF99','CCFFCC','CCFFFF','99CCFF','CC99FF','FFFFFF');
|
||||
|
||||
|
|
@ -29,6 +30,7 @@
|
|||
self.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
||||
</script>
|
||||
</head>
|
||||
<body class="editor_pop_body">
|
||||
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1,022 B After Width: | Height: | Size: 1,022 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1,015 B After Width: | Height: | Size: 1,015 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1,015 B After Width: | Height: | Size: 1,015 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1,022 B After Width: | Height: | Size: 1,022 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 953 B After Width: | Height: | Size: 953 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 944 B After Width: | Height: | Size: 944 B |
|
Before Width: | Height: | Size: 1,013 B After Width: | Height: | Size: 1,013 B |
|
Before Width: | Height: | Size: 975 B After Width: | Height: | Size: 975 B |
|
Before Width: | Height: | Size: 1,007 B After Width: | Height: | Size: 1,007 B |
|
Before Width: | Height: | Size: 1,016 B After Width: | Height: | Size: 1,016 B |
|
Before Width: | Height: | Size: 977 B After Width: | Height: | Size: 977 B |
|
Before Width: | Height: | Size: 989 B After Width: | Height: | Size: 989 B |
|
Before Width: | Height: | Size: 980 B After Width: | Height: | Size: 980 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 971 B After Width: | Height: | Size: 971 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 968 B After Width: | Height: | Size: 968 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 987 B After Width: | Height: | Size: 987 B |
|
Before Width: | Height: | Size: 992 B After Width: | Height: | Size: 992 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1,004 B After Width: | Height: | Size: 1,004 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 953 B After Width: | Height: | Size: 953 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |