1. 에디터 모듈의 추가 설정 부분을 확장하여 업로드 권한/컴포넌트/기본컴포넌트/html사용등의 권한과 에디터 높이/스킨등을 상세히 설정할 수 있도록 기능 추가.

2. 게시판 모듈(board)의 경우 기본 설정 - 추가 설정 - 권한 설정을 여러개의 게시판에 대해서 일괄 적용할 수 있도록 기능 추가


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3519 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-14 08:58:27 +00:00
parent 77195b282a
commit 62ff4b1fae
54 changed files with 710 additions and 230 deletions

View file

@ -207,15 +207,7 @@
// 에디터 모듈의 getEditor를 호출하여 세팅
$oEditorModel = &getModel('editor');
$option->primary_key_name = 'document_srl';
$option->content_key_name = 'content';
$option->allow_fileupload = $this->grant->fileupload;
$option->enable_autosave = true;
$option->enable_default_component = true;
$option->enable_component = true;
$option->resizable = true;
$option->height = 400;
$editor = $oEditorModel->getEditor($document_srl, $option);
$editor = $oEditorModel->getModuleEditor('document', $this->module_srl, $document_srl, 'document_srl', 'content');
Context::set('editor', $editor);
$this->setTemplateFile('write_form');
@ -383,19 +375,11 @@
* 따라서 고유값이 없을 경우 고유값을 가져와서 지정해 주어야
**/
function getCommentEditor($editor_sequence, $comment_srl=0, $height = 100) {
$oEditorModel = &getModel('editor');
$option->editor_sequence = $editor_sequence;
$option->primary_key_name = 'comment_srl';
$option->content_key_name = 'content';
$option->allow_fileupload = $this->grant->comment_fileupload;
$option->enable_autosave = false;
$option->enable_default_component = true;
$option->enable_component = true;
$option->resizable = true;
$option->height = $height;
$comment_editor = $oEditorModel->getEditor($comment_srl, $option);
return $comment_editor;
}
Context::set('comment_srl', $comment_srl);
$oEditorModel = &getModel('editor');
$editor = $oEditorModel->getModuleEditor('comment', $this->module_srl, $comment_srl, 'comment_srl', 'content');
return $editor;
}
}
?>