Beispiel #1
0
// http://www.obdev.at
$webyep_bDocumentPage = false;
$webyep_sIncludePath = "..";
include_once "{$webyep_sIncludePath}/webyep.php";
include_once @webyep_sConfigValue("webyep_sIncludePath") . "/elements/WYRichTextElement.php";
include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYTextArea.php";
include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYEditor.php";
$bOK = false;
$sResponse = WYTS("RichTextSaved");
$sHelpFile = "richtext-element.php";
$oEditor = new WYEditor();
$oElement = new WYRichTextElement($oEditor->sFieldName, $oEditor->bGlobal);
$oTAHTMLCode = new WYTextArea("HTML_CODE", $oElement->sText());
if ($oEditor->bSave) {
    $oElement->setText($oTAHTMLCode->sText());
    $oElement->save();
    $bOK = true;
} else {
    $sOnLoadScript = 'document.forms[0].HTML_CODE.focus();';
}
$goApp->outputWarningPanels();
// give App a chance to say something
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>

<title>
<?php 
WYTSD("RichTextEditorTitle", true);
?>
</title>