mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@487 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4446ee2266
commit
db68b3ebfe
4 changed files with 27 additions and 41 deletions
|
|
@ -1,41 +0,0 @@
|
||||||
<!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>change Color</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'>
|
|
||||||
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');
|
|
||||||
|
|
||||||
function printColorBox() {
|
|
||||||
var html = '';
|
|
||||||
for(var i=0;i<color_list.length;i++) {
|
|
||||||
html += "<div style=\"float:left;background-color:#"+color_list[i]+"\"><img src=\"..\/images\/blank.gif\" class=\"color_icon\" onmouseover=\"this.className='color_icon_over'\" onmouseout=\"this.className='color_icon'\" onclick=\"setColor('"+color_list[i]+"')\" \/><\/div>";
|
|
||||||
}
|
|
||||||
document.write(html);
|
|
||||||
}
|
|
||||||
|
|
||||||
function setColor(color) {
|
|
||||||
var mode = "<?=$_REQUEST['mode']?>";
|
|
||||||
opener.editorFocus(opener.editorPrevSrl);
|
|
||||||
if(mode == "ForeColor") {
|
|
||||||
opener.editorSetForeColor("#"+color);
|
|
||||||
} else {
|
|
||||||
opener.editorSetBackColor("#"+color);
|
|
||||||
}
|
|
||||||
opener.editorFocus(opener.editorPrevSrl);
|
|
||||||
self.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
xAddEventListener(window, 'load', setFixedPopupSize);
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body class="editor_pop_body">
|
|
||||||
<script type="text/javascript">
|
|
||||||
printColorBox();
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
20
modules/editor/component/colorpicker/colorpicker.tpl
Normal file
20
modules/editor/component/colorpicker/colorpicker.tpl
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<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');
|
||||||
|
|
||||||
|
function setColor(color) {
|
||||||
|
var mode = "{$mode}";
|
||||||
|
opener.editorFocus(opener.editorPrevSrl);
|
||||||
|
if(mode == "ForeColor") {
|
||||||
|
opener.editorSetForeColor("#"+color);
|
||||||
|
} else {
|
||||||
|
opener.editorSetBackColor("#"+color);
|
||||||
|
}
|
||||||
|
opener.editorFocus(opener.editorPrevSrl);
|
||||||
|
self.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
for(var i=0;i<color_list.length;i++) {
|
||||||
|
html += "<div style=\"float:left;background-color:#"+color_list[i]+"\"><img src=\"blank.gif\" class=\"color_icon\" onmouseover=\"this.className='color_icon_over'\" onmouseout=\"this.className='color_icon'\" onclick=\"setColor('"+color_list[i]+"')\" \/><\/div>";
|
||||||
|
}
|
||||||
|
document.write(html);
|
||||||
|
</script>
|
||||||
|
Before Width: | Height: | Size: 49 B After Width: | Height: | Size: 49 B |
|
|
@ -17,9 +17,16 @@
|
||||||
* @brief 에디터를 return
|
* @brief 에디터를 return
|
||||||
**/
|
**/
|
||||||
function getEditor($upload_target_srl, $allow_fileupload = false) {
|
function getEditor($upload_target_srl, $allow_fileupload = false) {
|
||||||
|
// 업로드를 위한 변수 설정
|
||||||
Context::set('upload_target_srl', $upload_target_srl);
|
Context::set('upload_target_srl', $upload_target_srl);
|
||||||
Context::set('allow_fileupload', $allow_fileupload);
|
Context::set('allow_fileupload', $allow_fileupload);
|
||||||
|
|
||||||
|
// 에디터 컴포넌트를 구함
|
||||||
|
$component_list = FileHandler::readDir($this->module_path.'components');
|
||||||
|
debugPrint($component_list);
|
||||||
|
|
||||||
|
|
||||||
|
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||||
$tpl_path = $this->module_path.'tpl';
|
$tpl_path = $this->module_path.'tpl';
|
||||||
$tpl_file = 'editor.html';
|
$tpl_file = 'editor.html';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue