mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
init editor config of editor page
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9094 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
882fce4284
commit
afa0bd2e68
1 changed files with 9 additions and 1 deletions
|
|
@ -25,7 +25,15 @@
|
|||
// Get a type of component
|
||||
$oEditorModel = &getModel('editor');
|
||||
$oModuleModel = &getModel('module');
|
||||
$editor_config = $oModuleModel->getModuleConfig('editor');
|
||||
$editor_config = $oModuleModel->getModuleConfig('editor');
|
||||
|
||||
//editor_config init
|
||||
if(!$editor_config->editor_height) $editor_config->editor_height = 500;
|
||||
if(!$editor_config->comment_editor_height) $editor_config->comment_editor_height = 120;
|
||||
if(!$editor_config->editor_skin) $editor_config->editor_skin = 'xpresseditor';
|
||||
if(!$editor_config->comment_editor_skin) $editor_config->comment_editor_skin = 'xpresseditor';
|
||||
if(!$editor_config->sel_editor_colorset) $editor_config->sel_editor_colorset= 'white';
|
||||
if(!$editor_config->sel_comment_editor_colorset) $editor_config->sel_comment_editor_colorset= 'white';
|
||||
|
||||
$component_list = $oEditorModel->getComponentList(false, $site_srl, true);
|
||||
$editor_skin_list = FileHandler::readDir(_XE_PATH_.'modules/editor/skins');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue