@@ 149-154 (lines=6) @@ | ||
146 | ||
147 | // Only for Xoops 2.0.x |
|
148 | switch ($editor_option) { |
|
149 | case 'fckeditor': |
|
150 | if (is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) { |
|
151 | require_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php'); |
|
152 | $editor = new XoopsFormFckeditor($caption, $name, $value); |
|
153 | } |
|
154 | break; |
|
155 | ||
156 | case 'htmlarea': |
|
157 | if (is_readable(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php')) { |
|
@@ 156-161 (lines=6) @@ | ||
153 | } |
|
154 | break; |
|
155 | ||
156 | case 'htmlarea': |
|
157 | if (is_readable(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php')) { |
|
158 | require_once(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php'); |
|
159 | $editor = new XoopsFormHtmlarea($caption, $name, $value); |
|
160 | } |
|
161 | break; |
|
162 | ||
163 | case 'dhtmltextarea': |
|
164 | $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 10, 50, $supplemental); |
|
@@ 179-184 (lines=6) @@ | ||
176 | } |
|
177 | break; |
|
178 | ||
179 | case 'koivi': |
|
180 | if (is_readable(XOOPS_ROOT_PATH . '/class/wysiwyg/formwysiwygtextarea.php')) { |
|
181 | require_once(XOOPS_ROOT_PATH . '/class/wysiwyg/formwysiwygtextarea.php'); |
|
182 | $editor = new XoopsFormWysiwygTextArea($caption, $name, $value, $width, $height, ''); |
|
183 | } |
|
184 | break; |
|
185 | } |
|
186 | if (!is_object($editor)) { |
|
187 | trigger_error('Error, impossible to get the requested text editor', E_USER_ERROR); |