|
XOOPS RMCommon Utilities
2.1.8.91RC
|

Public Member Functions | |
| __construct ($caption, $name, $width='100%', $height='300px', $default='', $type='', $change=1, $ele=array('op')) | |
| editorFormAction ($action) | |
| exmcode_buttons ($buttons) | |
| getType () | |
| render () | |
| renderTArea () | |
| setTheme ($theme) | |
| setType ($value) | |
| tinyCSS ($url, EXMForm &$form) | |
Public Member Functions inherited from RMFormElement | |
| addClass ($class) | |
| getCaption () | |
| getClass () | |
| getDescription () | |
| getExtra () | |
| getForm () | |
| getName () | |
| id () | |
| render () | |
| setCaption ($caption) | |
| setClass ($class) | |
| setDescription ($desc) | |
| setExtra ($extra) | |
| setForm ($name) | |
| setId ($id) | |
| setName ($name) | |
Private Member Functions | |
| renderExmCode () | |
| renderHTML () | |
| renderTiny () | |
Private Attributes | |
| $_action = '' | |
| $_change = 0 | |
| $_default = '' | |
| $_eles = array() | |
| $_height = '' | |
| $_theme = '' | |
| $_tinycss = '' | |
| $_type = 'tiny' | |
| $_width = '' | |
| $ex_buttons = 'bold,italic,underline,strikeout,separator_t,left,center,right,separator_t,fontsize,font,fontcolor,separator_t,more,bottom,top,separator_b,link,email,xcode,xquote,separator_b,images,emotions,separator_b,chars,page' | |
| $ex_plugins = 'dropdown,texts,fonts,email,link,xcode,xquote,rmimage,emotions,more,chars' | |
Additional Inherited Members | |
Static Public Attributes inherited from RMFormElement | |
| static | $elementsIds = array() |
Clase controladora para campos de edicin de contenido
Definition at line 14 of file editor.class.php.
| RMFormEditor::__construct | ( | $caption, | |
| $name, | |||
$width = '100%', |
|||
$height = '300px', |
|||
$default = '', |
|||
$type = '', |
|||
$change = 1, |
|||
$ele = array('op') |
|||
| ) |
| string | $caption | Texto del campo |
| string | $name | Nombre de este campo |
| string | $width | Ancho del campo. Puede ser el valor en formato pixels (300px) o en porcentaje (100%) |
| string | $height | Alto de campo. El valor debe ser pasado en formato pixels (300px). |
| string | $default | Texto incial al cargar el campo. POr defecto se muestra vaco. |
| string | $type | Tipo de Editor. Posibles valores: FCKeditor, DHTML |
Definition at line 48 of file editor.class.php.
References $rmc_config, $type, RMFunctions\get(), TextCleaner\getInstance(), RMFormElement\setCaption(), and RMFormElement\setName().

| RMFormEditor::editorFormAction | ( | $action | ) |
Cambia el valor action del formulario en el cambio de tipo de editor
Definition at line 82 of file editor.class.php.
References $action.
| RMFormEditor::exmcode_buttons | ( | $buttons | ) |
Establece los botones a mostrar en el editor
| string | $buttons |
Definition at line 204 of file editor.class.php.
| RMFormEditor::getType | ( | ) |
Definition at line 70 of file editor.class.php.
References $_type.
| RMFormEditor::render | ( | ) |
Generamos el cdigo HTML para el editor seleccionado
Agregamos la opción para cambiar el tipo de editor
Definition at line 89 of file editor.class.php.
References $ret, renderExmCode(), renderHTML(), renderTArea(), and renderTiny().

|
private |
Definition at line 177 of file editor.class.php.
References $p, $plugins, $rtn, RMEvents\get(), RMTemplate\get(), RMFormElement\getClass(), RMFormElement\getName(), and RMCURL.
Referenced by render().


|
private |
HTML Editor
Definition at line 163 of file editor.class.php.
References $plugins, $rtn, RMEvents\get(), RMTemplate\get(), RMFormElement\getClass(), RMFormElement\getName(), and RMCURL.
Referenced by render().


| RMFormEditor::renderTArea | ( | ) |
Definition at line 114 of file editor.class.php.
References $plugins, $rtn, RMEvents\get(), RMTemplate\get(), and RMFormElement\getName().
Referenced by render().


|
private |
Genera el cdigo HTML para el editor TINY
Definition at line 139 of file editor.class.php.
References $rmc_config, $rtn, $xoopsUser, RMTemplate\get(), RMFormElement\getClass(), TinyEditor\getInstance(), RMFormElement\getName(), RMFormElement\id(), and RMCURL.
Referenced by render().


| RMFormEditor::setTheme | ( | $theme | ) |
Establece el tema a utilizar en tiny
Definition at line 76 of file editor.class.php.
| RMFormEditor::setType | ( | $value | ) |
Establece el tipo de editor a utilizar
Definition at line 67 of file editor.class.php.
| RMFormEditor::tinyCSS | ( | $url, | |
| EXMForm & | $form | ||
| ) |
Set de funciones útiles nicamente con el editor TinyMCE
Definition at line 131 of file editor.class.php.
References $url.
|
private |
Definition at line 21 of file editor.class.php.
|
private |
Indica si se muestra o no el combo para cambiar tipo de editor
Definition at line 25 of file editor.class.php.
|
private |
Definition at line 18 of file editor.class.php.
|
private |
Especifica el parámetro que sirve como base para el cambio de tipo de edito
Definition at line 30 of file editor.class.php.
|
private |
Definition at line 17 of file editor.class.php.
|
private |
Definition at line 20 of file editor.class.php.
|
private |
Variables utilizadas con el editor tiny
Definition at line 34 of file editor.class.php.
|
private |
Definition at line 19 of file editor.class.php.
Referenced by getType().
|
private |
Definition at line 16 of file editor.class.php.
|
private |
Definition at line 39 of file editor.class.php.
|
private |
Almacena los botones (orden) que se utilizaran en el editor exmCode
Definition at line 38 of file editor.class.php.