30 $site_srl = (int)$site_module_info->site_srl;
33 $oComponent = &$oEditorModel->getComponentObject($component, $editor_sequence, $site_srl);
34 if(!$oComponent->toBool())
43 $popup_content = $oComponent->getPopupContent();
61 $site_srl = (int)$site_module_info->site_srl;
64 $component = $oEditorModel->getComponent($component_name, $site_srl);
66 if(!$component->component_name) {
67 $this->
stop(
'msg_invalid_request');
86 if(!$current_module_srl && !$current_module_srls)
89 $current_module_info =
Context::get(
'current_module_info');
90 $current_module_srl = $current_module_info->module_srl;
91 if(!$current_module_srl)
return new BaseObject();
95 $editor_config = $oEditorModel->getEditorConfig($current_module_srl);
104 $skin_info =
$oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
105 Context::set(
'editor_colorset_list', $skin_info->colorset);
106 $skin_info =
$oModuleModel->loadSkinInfo($this->module_path,$editor_config->comment_editor_skin);
107 Context::set(
'editor_comment_colorset_list', $skin_info->colorset);
110 $content_style_list = array();
111 for($i=0,$c=count($contents);$i<$c;$i++)
113 $style = $contents[$i];
114 $info =
$oModuleModel->loadSkinInfo($this->module_path,$style,
'styles');
115 $content_style_list[$style] =
new stdClass();
116 $content_style_list[$style]->title = $info->title;
118 Context::set(
'content_style_list', $content_style_list);
122 $group_list = $oMemberModel->getGroups($site_module_info->site_srl);
127 $security->encodeHTML(
'group_list..title');
128 $security->encodeHTML(
'group_list..description');
129 $security->encodeHTML(
'content_style_list..');
130 $security->encodeHTML(
'editor_comment_colorset_list..title');
134 $tpl = $oTemplate->compile($this->module_path.
'tpl',
'editor_module_config');
151 $skin_info =
$oModuleModel->loadSkinInfo($this->module_path,$skin);
152 $colorset = $skin_info->colorset;
159 $config = $oEditorModel->getEditorConfig();
165 $option_com =
new stdClass();
166 $option_com->allow_fileupload =
false;
167 $option_com->content_style = $config->content_style;
168 $option_com->content_font = $config->content_font;
169 $option_com->content_font_size = $config->content_font_size;
170 $option_com->enable_autosave =
false;
171 $option_com->enable_default_component =
true;
172 $option_com->enable_component =
true;
173 $option_com->disable_html =
false;
174 $option_com->height = $config->comment_editor_height;
175 $option_com->skin = $config->comment_editor_skin;
176 $option_com->content_key_name =
'dummy_content';
177 $option_com->primary_key_name =
'dummy_key';
178 $option_com->content_style = $config->comment_content_style;
179 $option_com->colorset = $config->sel_comment_editor_colorset;
180 $editor = $oEditorModel->getEditor(0, $option_com);
184 $option =
new stdClass();
185 $option->allow_fileupload =
false;
186 $option->content_style = $config->content_style;
187 $option->content_font = $config->content_font;
188 $option->content_font_size = $config->content_font_size;
189 $option->enable_autosave =
false;
190 $option->enable_default_component =
true;
191 $option->enable_component =
true;
192 $option->disable_html =
false;
193 $option->height = $config->editor_height;
194 $option->skin = $config->editor_skin;
195 $option->content_key_name =
'dummy_content';
196 $option->primary_key_name =
'dummy_key';
197 $option->colorset = $config->sel_editor_colorset;
198 $editor = $oEditorModel->getEditor(0, $option);
setTemplateFile($filename)
triggerDispEditorAdditionSetup(&$obj)
Add a form for editor addition setup.
set($key, $val, $set_to_get_vars=0)
dispEditorPopup()
Action to get a request to display compoenet pop-up.
dispEditorConfigPreview()
high class of the editor odule
dispEditorComponentInfo()
Get component information.
readDir($path, $filter= '', $to_lower=FALSE, $concat_prefix=FALSE)
view class of the editor module