@@ 185-194 (lines=10) @@ | ||
182 | ||
183 | ||
184 | switch(strtolower(news_getmoduleoption('form_options'))) { |
|
185 | case 'spaw': |
|
186 | if(!$x22) { |
|
187 | if (is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/spaw/formspaw.php')) { |
|
188 | include_once(XOOPS_ROOT_PATH . '/class/xoopseditor/spaw/formspaw.php'); |
|
189 | $editor = new XoopsFormSpaw($caption, $name, $value); |
|
190 | } |
|
191 | } else { |
|
192 | $editor = new XoopsFormEditor($caption, 'spaw', $editor_configs); |
|
193 | } |
|
194 | break; |
|
195 | ||
196 | case 'fck': |
|
197 | if(!$x22) { |
|
@@ 196-205 (lines=10) @@ | ||
193 | } |
|
194 | break; |
|
195 | ||
196 | case 'fck': |
|
197 | if(!$x22) { |
|
198 | if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/FCKeditor/formfckeditor.php')) { |
|
199 | include_once(XOOPS_ROOT_PATH . '/class/xoopseditor/FCKeditor/formfckeditor.php'); |
|
200 | $editor = new XoopsFormFckeditor($caption, $name, $value); |
|
201 | } |
|
202 | } else { |
|
203 | $editor = new XoopsFormEditor($caption, 'fckeditor', $editor_configs); |
|
204 | } |
|
205 | break; |
|
206 | ||
207 | case 'htmlarea': |
|
208 | if(!$x22) { |
|
@@ 207-219 (lines=13) @@ | ||
204 | } |
|
205 | break; |
|
206 | ||
207 | case 'htmlarea': |
|
208 | if(!$x22) { |
|
209 | // if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/htmlarea/formhtmlarea.php')) { |
|
210 | // include_once(XOOPS_ROOT_PATH . '/class/xoopseditor/htmlarea/formhtmlarea.php'); |
|
211 | // $editor = new XoopsFormHtmlarea($caption, $name, $value); |
|
212 | if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/xinha/formxinha.php')) { |
|
213 | include_once(XOOPS_ROOT_PATH . '/class/xoopseditor/xinha/formxinha.php'); |
|
214 | $editor = new XoopsFormXinha($caption, $name, $value); |
|
215 | } |
|
216 | } else { |
|
217 | $editor = new XoopsFormEditor($caption, 'htmlarea', $editor_configs); |
|
218 | } |
|
219 | break; |
|
220 | ||
221 | case 'dhtml': |
|
222 | if(!$x22) { |
|
@@ 243-252 (lines=10) @@ | ||
240 | } |
|
241 | break; |
|
242 | ||
243 | case 'koivi': |
|
244 | if(!$x22) { |
|
245 | if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/koivi/formwysiwygtextarea.php')) { |
|
246 | include_once(XOOPS_ROOT_PATH . '/class/xoopseditor/koivi/formwysiwygtextarea.php'); |
|
247 | $editor = new XoopsFormWysiwygTextArea($caption, $name, $value, '100%', '450px', ''); |
|
248 | } |
|
249 | } else { |
|
250 | $editor = new XoopsFormEditor($caption, 'koivi', $editor_configs); |
|
251 | } |
|
252 | break; |
|
253 | } |
|
254 | return $editor; |
|
255 | } |