Move editor frame function to editorView::dispEditorFrame

This commit is contained in:
Kijin Sung 2018-02-26 14:11:13 +09:00
parent 488181eaae
commit 7d5b78b269
6 changed files with 35 additions and 36 deletions

View file

@ -157,40 +157,6 @@ class memberAdminView extends member
$this->setTemplateFile('agreements_config');
}
/**
* Display the agreements edit form.
*
* @return void
*/
public function dispMemberAdminAgreementsEdit()
{
// Check parent input ID
$parent_input_id = Context::get('parent_input_id');
Context::addBodyClass('disable_debug_panel');
// Load editor
$oEditorModel = getModel('editor');
$option = $oEditorModel->getEditorConfig();
$option->editor_skin = 'ckeditor';
$option->content_style = 'ckeditor_light';
$option->sel_editor_colorset = 'moono-lisa';
$option->primary_key_name = 'primary_key';
$option->content_key_name = 'content';
$option->allow_fileupload = FALSE;
$option->enable_autosave = FALSE;
$option->enable_default_component = TRUE;
$option->enable_component = FALSE;
$option->height = 300;
$option->editor_focus = 'Y';
$editor = $oEditorModel->getEditor(0, $option);
Context::set('editor', $editor);
// Set template
$this->setLayoutPath('./common/tpl/');
$this->setLayoutFile("default_layout");
$this->setTemplateFile('agreements_edit');
}
public function dispMemberAdminSignUpConfig()
{
$config = $this->memberConfig;