|
|
@ -106,10 +106,20 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea { |
|
|
|
if (!FCKeditor :: IsCompatible()) { |
|
|
|
if (!FCKeditor :: IsCompatible()) { |
|
|
|
return parent::toHTML(); |
|
|
|
return parent::toHTML(); |
|
|
|
} |
|
|
|
} |
|
|
|
$this->fck_editor->Value = $this->getValue(); |
|
|
|
$this->fck_editor->Value = $this->getValue(); |
|
|
|
$result = $this->fck_editor->CreateHtml(); |
|
|
|
$result = $this->fck_editor->CreateHtml(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($this->fck_editor->Config['LoadAsciiMath'])) { |
|
|
|
|
|
|
|
if (isset($_SESSION['ascii_math_loaded']) && |
|
|
|
|
|
|
|
$_SESSION['ascii_math_loaded'] == false |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
$result .= $this->fck_editor->Config['LoadAsciiMath']; |
|
|
|
|
|
|
|
$_SESSION['ascii_math_loaded'] = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Add a link to open the allowed html tags window |
|
|
|
//Add a link to open the allowed html tags window |
|
|
|
//$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>'; |
|
|
|
//$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; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|