|
|
|
|
@ -7,8 +7,8 @@ require_once 'HTML/QuickForm/textarea.php'; |
|
|
|
|
/** |
|
|
|
|
* A html editor field to use with QuickForm |
|
|
|
|
*/ |
|
|
|
|
class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea { |
|
|
|
|
|
|
|
|
|
class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea |
|
|
|
|
{ |
|
|
|
|
/** |
|
|
|
|
* Full page |
|
|
|
|
*/ |
|
|
|
|
@ -36,7 +36,8 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea { |
|
|
|
|
* @param string Attributes for the textarea |
|
|
|
|
* @param array $editor_config Optional configuration settings for the online editor. |
|
|
|
|
*/ |
|
|
|
|
function HTML_QuickForm_html_editor($elementName = null, $elementLabel = null, $attributes = null, $config = null) { |
|
|
|
|
function HTML_QuickForm_html_editor($elementName = null, $elementLabel = null, $attributes = null, $config = null) |
|
|
|
|
{ |
|
|
|
|
// The global variable $fck_attribute has been deprecated. It stays here for supporting old external code. |
|
|
|
|
global $fck_attribute; |
|
|
|
|
|
|
|
|
|
@ -88,7 +89,8 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea { |
|
|
|
|
* Return the HTML editor in HTML |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
function toHtml() { |
|
|
|
|
function toHtml() |
|
|
|
|
{ |
|
|
|
|
if ($this->getRichEditorStatus() == false) { |
|
|
|
|
//Fix rows and cols |
|
|
|
|
//$this->_attributes['rows'] = 20; |
|
|
|
|
@ -132,4 +134,4 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea { |
|
|
|
|
//$result .= '<small><a href="#" onclick="MyWindow=window.open('."'".api_get_path(WEB_CODE_PATH)."help/allowed_html_tags.php?fullpage=". ($this->fullPage ? '1' : '0')."','MyWindow','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600,left=200,top=20'".'); return false;">'.get_lang('AllowedHTMLTags').'</a></small>'; |
|
|
|
|
return $result; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|