1: <?php
2:
3:
4: defined('_JOOS_CORE') or exit();
5:
6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17:
18: class pluginAutoadminEditWysiwyg implements joosAutoadminPluginsEdit
19: {
20: public static function render( $element_param , $key , $value , $obj_data , $params )
21: {
22: $element = array();
23: $element[] = $params['label_begin'];
24: $element[] = joosHtml::label(array('for' => $key), $element_param['name']);
25: $element[] = $params['label_end'];
26: $element[] = $params['el_begin'];
27:
28: $editor_params = array('editor' => isset($element_param['html_edit_element_param']['editor']) ? $element_param['html_edit_element_param']['editor'] : 'elrte',
29: 'rows' => isset($element_param['html_edit_element_param']['rows']) ? $element_param['html_edit_element_param']['rows'] : null,
30: 'cols' => isset($element_param['html_edit_element_param']['cols']) ? $element_param['html_edit_element_param']['cols'] : null,
31: 'width' => isset($element_param['html_edit_element_param']['width']) ? $element_param['html_edit_element_param']['width'] : '"98%"',
32: 'height' => isset($element_param['html_edit_element_param']['height']) ? $element_param['html_edit_element_param']['height'] : '200px',);
33:
34: $element[] = joosEditor::display($key, $value, $editor_params);
35: $element[] = $params['el_end'];
36:
37: joosAutoadmin::add_js_onformsubmit(joosEditor::get_content($key));
38:
39: return implode("\n", $element);
40: }
41:
42: }
43: