mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1133 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6e8eabb9f6
commit
a0074e8311
13 changed files with 99 additions and 4 deletions
|
|
@ -28,6 +28,12 @@
|
|||
Context::set('component_list', $component_list);
|
||||
}
|
||||
|
||||
// 첨부파일 모듈의 정보를 구함
|
||||
$oModuleModel = &getModel('module');
|
||||
$file_config = $oModuleModel->getModuleConfig('file');
|
||||
$file_config->allowed_filesize = $file_config->allowed_filesize * 1024;
|
||||
Context::set('file_config',$file_config);
|
||||
|
||||
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||
$tpl_path = $this->module_path.'tpl';
|
||||
$tpl_file = 'editor.html';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
<!--%import("js/editor.js")-->
|
||||
<!--%import("css/editor.css")-->
|
||||
<!--%import("./lang")-->
|
||||
|
||||
<!-- 에디터 활성화 -->
|
||||
<script type="text/javascript">
|
||||
var editor_path = "{$editor_path}";
|
||||
|
|
@ -98,7 +97,7 @@
|
|||
<!--%import("./js/SWFUpload.js")-->
|
||||
<script type="text/javascript">
|
||||
var zbxe_session_name = "{session_name()}";
|
||||
var uploader_setting = { "allowed_filesize" : 30720, "allowed_filetypes" : "*.*", "allowed_filetypes_description" : "All files..." }
|
||||
var uploader_setting = { "allowed_filesize" : {$file_config->allowed_filesize}, "allowed_filetypes" : "{$file_config->allowed_filetypes}", "allowed_filetypes_description" : "All files..." }
|
||||
editor_upload_init("{$upload_target_srl}");
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue