회원/ 커뮤니케이션 모듈의 에디터 설정에서 컬러셋을 지정할 수 있게 하여 모듈 스킨과 잘 어울리는 에디터가 나타나도록 설정 기능 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4985 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-11-26 03:54:57 +00:00
parent c400e919b7
commit 93f25957db
6 changed files with 20 additions and 4 deletions

View file

@ -18,7 +18,7 @@
**/
function procCommunicationAdminInsertConfig() {
// 기본 정보를 받음
$args = Context::gets('skin','colorset','editor_skin');
$args = Context::gets('skin','colorset','editor_skin','editor_colorset');
if(!$args->skin) $args->skin = "default";
if(!$args->colorset) $args->colorset = "white";

View file

@ -125,6 +125,7 @@
$option->disable_html = true;
$option->height = 300;
$option->skin = $this->communication_config->editor_skin;
$option->colorset = $this->communication_config->editor_colorset;
$editor = $oEditorModel->getEditor($logged_info->member_srl, $option);
Context::set('editor', $editor);

View file

@ -1,4 +1,5 @@
<!--%import("js/communication_admin.js")-->
<!--%import("../../editor/tpl/js/editor_module_config.js",optimized=false)-->
<!--%import("filter/insert_config.xml")-->
<h3>{$lang->communication} <span class="gray">{$lang->cmd_management}</span></h3>
@ -11,11 +12,16 @@
<tr class="row2">
<th scope="row"><div>{$lang->editor_skin}</div></th>
<td>
<select name="editor_skin">
<select name="editor_skin" onchange="getEditorSkinColorList(this.value)">
<!--@foreach($editor_skin_list as $editor_skin)-->
<option value="{$editor_skin}" <!--@if($editor_skin==$communication_config->editor_skin)-->selected="selected"<!--@end-->>{$editor_skin}</option>
<!--@end-->
</select>
<select name="editor_colorset" id="sel_editor_colorset" style="display:none">
</select>
<script "text/javascript">//<![CDATA[
getEditorSkinColorList('{$communication_config->editor_skin}','{$communication_config->editor_colorset}');
//]]></script>
</td>
</tr>

View file

@ -83,9 +83,11 @@
**/
function procMemberAdminInsertConfig() {
// 기본 정보를 받음
$args = Context::gets('webmaster_name','webmaster_email','skin','colorset','enable_openid','enable_join','enable_confirm','enable_ssl','limit_day','after_login_url','after_logout_url','redirect_url','agreement','profile_image','profile_image_max_width','profile_image_max_height','image_name','image_mark', 'image_name_max_width', 'image_name_max_height','image_mark_max_width','image_mark_max_height','signature_max_height','editor_skin');
$args = Context::gets('webmaster_name','webmaster_email','skin','colorset','enable_openid','enable_join','enable_confirm','enable_ssl','limit_day','after_login_url','after_logout_url','redirect_url','agreement','profile_image','profile_image_max_width','profile_image_max_height','image_name','image_mark', 'image_name_max_width', 'image_name_max_height','image_mark_max_width','image_mark_max_height','signature_max_height','editor_skin','editor_colorset');
if(!$args->skin) $args->skin = "default";
if(!$args->colorset) $args->colorset = "white";
if(!$args->editor_skin) $args->editor_skin= "default";
if(!$args->editor_colorset) $args->editor_colorset = "white";
if($args->enable_join!='Y') $args->enable_join = 'N';
if($args->enable_ssl!='Y') $args->enable_ssl = 'N';
if($args->enable_openid!='Y') $args->enable_openid= 'N';

View file

@ -114,6 +114,7 @@
$option->disable_html = true;
$option->height = 200;
$option->skin = $this->member_config->editor_skin;
$option->colorset = $this->member_config->editor_colorset;
$editor = $oEditorModel->getEditor($member_info->member_srl, $option);
Context::set('editor', $editor);
}

View file

@ -1,4 +1,5 @@
<!--%import("filter/insert_config.xml")-->
<!--%import("../../editor/tpl/js/editor_module_config.js",optimized=false)-->
<!--#include("header.html")-->
@ -99,11 +100,16 @@
<tr>
<th scope="row"><div>{$lang->editor_skin}</div></th>
<td>
<select name="editor_skin">
<select name="editor_skin" onchange="getEditorSkinColorList(this.value)">
<!--@foreach($editor_skin_list as $editor_skin)-->
<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>
<script "text/javascript">//<![CDATA[
getEditorSkinColorList('{$config->editor_skin}','{$config->editor_colorset}');
//]]></script>
</td>
</tr>
<tr class="row2">