mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
모듈 추가 설정에서 댓글의 에디터 컬러셋 영역이 나타나지 않는 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6079 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9aae909493
commit
8cdbfd6303
5 changed files with 22 additions and 15 deletions
|
|
@ -90,6 +90,13 @@
|
|||
// 에디터 스킨 목록을 구함
|
||||
$editor_skin_list = FileHandler::readDir('./modules/editor/skins');
|
||||
Context::set('editor_skin_list', $editor_skin_list);
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
|
||||
Context::set('editor_colorset_list', $skin_info->colorset);
|
||||
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->comment_editor_skin);
|
||||
Context::set('editor_comment_colorset_list', $skin_info->colorset);
|
||||
|
||||
|
||||
// 그룹 목록을 구함
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_editor_module_config)">
|
||||
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />
|
||||
|
||||
<h4 class="xeAdmin">{$lang->editor}</h4>
|
||||
<table cellspacing="0" class="crossTable">
|
||||
<thead>
|
||||
|
|
@ -18,28 +17,28 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select name="editor_skin" onchange="getEditorSkinColorList(this.value)">
|
||||
<select name="editor_skin" onchange="getEditorSkinColorList(this.value, null, 'document')">
|
||||
<!--@foreach($editor_skin_list as $editor)-->
|
||||
<option value="{$editor}" <!--@if($editor==$editor_config->editor_skin)-->selected="selected"<!--@end-->>{$editor}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<select name="sel_editor_colorset" id="sel_editor_colorset" style="display:none">
|
||||
<select name="sel_editor_colorset" id="sel_editor_colorset"<!--@if(!count($editor_colorset_list))--> style="display:none"<!--@end-->>
|
||||
<!--@foreach($editor_colorset_list as $key => $val)-->
|
||||
<option value="{$val->name}" <!--@if($editor_config->sel_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<script "text/javascript">//<![CDATA[
|
||||
getEditorSkinColorList('{$editor_config->editor_skin}','{$editor_config->sel_editor_colorset}');
|
||||
//]]></script>
|
||||
</td>
|
||||
<td>
|
||||
<select name="comment_editor_skin">
|
||||
<select name="comment_editor_skin" onchange="getEditorSkinColorList(this.value, null, 'comment')">
|
||||
<!--@foreach($editor_skin_list as $editor)-->
|
||||
<option value="{$editor}" <!--@if($editor==$editor_config->comment_editor_skin)-->selected="selected"<!--@end-->>{$editor}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<select name="sel_comment_editor_colorset" id="sel_comment_editor_colorset" style="display:none">
|
||||
<select name="sel_comment_editor_colorset" id="sel_comment_editor_colorset"<!--@if(!count($editor_comment_colorset_list))--> style="display:none"<!--@end-->>
|
||||
<!--@foreach($editor_comment_colorset_list as $key => $val)-->
|
||||
<option value="{$val->name}" <!--@if($editor_config->sel_comment_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<script "text/javascript">//<![CDATA[
|
||||
getEditorSkinColorList('{$editor_config->comment_editor_skin}','{$editor_config->sel_comment_editor_colorset}','comment');
|
||||
//]]></script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
function getEditorSkinColorList(skin_name,selected_colorset,type){
|
||||
if(skin_name.length>0){
|
||||
type = type || 'board';
|
||||
type = type || 'document';
|
||||
var response_tags = new Array('error','message','colorset');
|
||||
exec_xml('editor','dispEditorSkinColorset',{skin:skin_name},resultGetEditorSkinColorList,response_tags,{'selected_colorset':selected_colorset,'type':type});
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ function getEditorSkinColorList(skin_name,selected_colorset,type){
|
|||
function resultGetEditorSkinColorList(ret_obj,response_tags, params) {
|
||||
|
||||
var selectbox = null;
|
||||
if(params.type == 'board'){
|
||||
if(params.type == 'document'){
|
||||
selectbox = xGetElementById("sel_editor_colorset");
|
||||
}else{
|
||||
selectbox = xGetElementById("sel_comment_editor_colorset");
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@
|
|||
$editor = $oEditorModel->getEditor(0, $option);
|
||||
Context::set('editor', $editor);
|
||||
|
||||
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('member_config');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,8 +107,7 @@
|
|||
<option value="{$editor_skin}" <!--@if($editor_skin==$config->editor_skin)-->selected="selected"<!--@end-->>{$editor_skin}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<select name="editor_colorset" id="sel_editor_colorset" style="display:none">
|
||||
</select>
|
||||
<select name="editor_colorset" id="sel_editor_colorset" style="display:none"></select>
|
||||
<script "text/javascript">//<![CDATA[
|
||||
getEditorSkinColorList('{$config->editor_skin}','{$config->editor_colorset}');
|
||||
//]]></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue