Issue 2455: [Admin UI Refactoring] Content >WYSIWYG Editor - prview ,detail

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11696 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-10-15 06:08:15 +00:00
parent 22aea44f77
commit 382baa1592
5 changed files with 173 additions and 124 deletions

View file

@ -137,23 +137,10 @@
$oEditorModel = &getModel('editor');
$config = $oEditorModel->getEditorConfig();
$option->allow_fileupload = false;
$option->content_style = $config->content_style;
$option->content_font = $config->content_font;
$option->content_font_size = $config->content_font_size;
$option->enable_autosave = false;
$option->enable_default_component = true;
$option->enable_component = true;
$option->disable_html = false;
$option->height = $config->editor_height;
$option->skin = $config->editor_skin;
$option->content_key_name = 'dummy_content';
$option->primary_key_name = 'dummy_key';
$option->colorset = $config->sel_editor_colorset;
$editor = $oEditorModel->getEditor(0, $option);
Context::set('editor', $editor);
$mode = Context::get('mode');
if($mode != 'main')
{
$option_com->allow_fileupload = false;
$option_com->content_style = $config->content_style;
$option_com->content_font = $config->content_font;
@ -164,14 +151,32 @@
$option_com->disable_html = false;
$option_com->height = $config->comment_editor_height;
$option_com->skin = $config->comment_editor_skin;
$option_com->content_key_name = 'dummy_content2';
$option_com->primary_key_name = 'dummy_key2';
$option_com->content_key_name = 'dummy_content';
$option_com->primary_key_name = 'dummy_key';
$option_com->content_style = $config->comment_content_style;
$option_com->colorset = $config->sel_comment_editor_colorset;
$editor = $oEditorModel->getEditor(0, $option_com);
}
else
{
$option->allow_fileupload = false;
$option->content_style = $config->content_style;
$option->content_font = $config->content_font;
$option->content_font_size = $config->content_font_size;
$option->enable_autosave = false;
$option->enable_default_component = true;
$option->enable_component = true;
$option->disable_html = false;
$option->height = $config->editor_height;
$option->skin = $config->editor_skin;
$option->content_key_name = 'dummy_content';
$option->primary_key_name = 'dummy_key';
$option->colorset = $config->sel_editor_colorset;
$editor = $oEditorModel->getEditor(0, $option);
}
$editor_comment = $oEditorModel->getEditor(0, $option_com);
Context::set('editor', $editor);
Context::set('editor_comment', $editor_comment);
$this->setTemplatePath($this->module_path.'tpl');