25 $site_srl = (int)$site_module_info->site_srl;
34 $editor_config =
new stdClass();
38 if(!$editor_config->editor_height) $editor_config->editor_height = 300;
39 if(!$editor_config->comment_editor_height) $editor_config->comment_editor_height = 100;
40 if(!$editor_config->editor_skin) $editor_config->editor_skin =
'ckeditor';
41 if(!$editor_config->comment_editor_skin) $editor_config->comment_editor_skin =
'ckeditor';
42 if(!$editor_config->sel_editor_colorset) $editor_config->sel_editor_colorset=
'moono';
43 if(!$editor_config->sel_comment_editor_colorset) $editor_config->sel_comment_editor_colorset=
'moono';
45 $component_list = $oEditorModel->getComponentList(
false, $site_srl,
true);
48 $skin_info =
$oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
51 $content_style_list = array();
52 for($i=0,$c=count($contents);$i<$c;$i++)
54 $style = $contents[$i];
55 $info =
$oModuleModel->loadSkinInfo($this->module_path,$style,
'styles');
56 $content_style_list[$style] =
new stdClass();
57 $content_style_list[$style]->title = $info->title;
61 $oAutoinstallModel =
getModel(
'autoinstall');
62 foreach($component_list as $component_name =>
$xml_info)
65 $xml_info->path =
'./modules/editor/components/'.$xml_info->component_name;
71 if(is_array($targetpackages)) $packages = $oAutoinstallModel->getInstalledPackages(array_keys($targetpackages));
73 foreach($component_list as $component_name =>
$xml_info)
77 $editor_config_default = array(
"editor_height" =>
"300",
"comment_editor_height" =>
"100",
"content_font_size"=>
"13");
80 $config = $oEditorModel->getEditorConfig();
82 $option =
new stdClass();
83 $option->allow_fileupload =
false;
84 $option->content_style = $config->content_style;
85 $option->content_font = $config->content_font;
86 $option->content_font_size = $config->content_font_size;
87 $option->enable_autosave =
false;
88 $option->enable_default_component =
true;
89 $option->enable_component =
true;
90 $option->disable_html =
false;
91 $option->height = $config->editor_height;
92 $option->skin = $config->editor_skin;
93 $option->content_key_name =
'dummy_content';
94 $option->primary_key_name =
'dummy_key';
95 $option->colorset = $config->sel_editor_colorset;
96 $editor = $oEditorModel->getEditor(0, $option);
100 $option_com =
new stdClass();
101 $option_com->allow_fileupload =
false;
102 $option_com->content_style = $config->content_style;
103 $option_com->content_font = $config->content_font;
104 $option_com->content_font_size = $config->content_font_size;
105 $option_com->enable_autosave =
false;
106 $option_com->enable_default_component =
true;
107 $option_com->enable_component =
true;
108 $option_com->disable_html =
false;
109 $option_com->height = $config->comment_editor_height;
110 $option_com->skin = $config->comment_editor_skin;
111 $option_com->content_key_name =
'dummy_content2';
112 $option_com->primary_key_name =
'dummy_key2';
113 $option_com->content_style = $config->comment_content_style;
114 $option_com->colorset = $config->sel_comment_editor_colorset;
116 $editor_comment = $oEditorModel->getEditor(0, $option_com);
118 Context::set(
'preview_editor_comment', $editor_comment);
122 Context::set(
'editor_colorset_list', $skin_info->colorset);
123 Context::set(
'content_style_list', $content_style_list);
126 Context::set(
'editor_config_default', $editor_config_default);
129 $security->encodeHTML(
'component_list....');
141 $site_srl = (int)$site_module_info->site_srl;
146 $component = $oEditorModel->getComponent($component_name,$site_srl);
148 if(!$component->component_name) {
149 $this->
stop(
'msg_invalid_request');
156 $group_list = $oMemberModel->getGroups($site_srl);
161 $args =
new stdClass();
162 $args->site_srl = $site_srl;
163 $columnList = array(
'module_srl',
'mid',
'module_category_srl',
'browser_title');
171 if(!is_array($mid_list)) $mid_list = array($mid_list);
179 $module_categories[0]->list = $mid_list;
186 $security->encodeHTML(
'group_list..title');
187 $security->encodeHTML(
'component...',
'component_name');
188 $security->encodeHTML(
'mid_list..title',
'mid_list..list..browser_title');
setTemplateFile($filename)
set($key, $val, $set_to_get_vars=0)
$xml_info
an object containing the module description extracted from XML file
$module_srl
integer value to represent a run-time instance of Module (XE Module)
dispEditorAdminSetupComponent()
Component setup.
dispEditorAdminIndex()
Administrator Setting page Settings to enable/disable editor component and other features.
editor admin view of the module class
high class of the editor odule
readDir($path, $filter= '', $to_lower=FALSE, $concat_prefix=FALSE)
$module
Class name of Xe Module that is identified by mid.