|
@@ 234-239 (lines=6) @@
|
| 231 |
|
|
| 232 |
|
// Only for Xoops 2.0.x |
| 233 |
|
switch ($editor_option) { |
| 234 |
|
case 'fckeditor': |
| 235 |
|
if (is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) { |
| 236 |
|
require_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php'); |
| 237 |
|
$editor = new XoopsFormFckeditor($caption, $name, $value); |
| 238 |
|
} |
| 239 |
|
break; |
| 240 |
|
|
| 241 |
|
case 'htmlarea': |
| 242 |
|
if (is_readable(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php')) { |
|
@@ 241-246 (lines=6) @@
|
| 238 |
|
} |
| 239 |
|
break; |
| 240 |
|
|
| 241 |
|
case 'htmlarea': |
| 242 |
|
if (is_readable(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php')) { |
| 243 |
|
require_once(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php'); |
| 244 |
|
$editor = new XoopsFormHtmlarea($caption, $name, $value); |
| 245 |
|
} |
| 246 |
|
break; |
| 247 |
|
|
| 248 |
|
case 'dhtmltextarea': |
| 249 |
|
case 'dhtml': |
|
@@ 265-270 (lines=6) @@
|
| 262 |
|
} |
| 263 |
|
break; |
| 264 |
|
|
| 265 |
|
case 'koivi': |
| 266 |
|
if (is_readable(XOOPS_ROOT_PATH . '/class/wysiwyg/formwysiwygtextarea.php')) { |
| 267 |
|
require_once(XOOPS_ROOT_PATH . '/class/wysiwyg/formwysiwygtextarea.php'); |
| 268 |
|
$editor = new XoopsFormWysiwygTextArea($caption, $name, $value, $width, $height, ''); |
| 269 |
|
} |
| 270 |
|
break; |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
return $editor; |