Beispiel #1
0
// (C) Objective Development Software GmbH
// http://www.obdev.at
$webyep_bDocumentPage = false;
$webyep_sIncludePath = "..";
include_once "{$webyep_sIncludePath}/webyep.php";
include_once @webyep_sConfigValue("webyep_sIncludePath") . "/elements/WYLongTextElement.php";
include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYTextArea.php";
include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYEditor.php";
$bOK = false;
$sResponse = WYTS("LongTextSaved");
$sHelpFile = "longtext-element.php";
$oEditor = new WYEditor();
$oElement = new WYLongTextElement($oEditor->sFieldName, $oEditor->bGlobal, "");
$oTA = new WYTextArea("TEXT", $oElement->sText());
if ($oEditor->bSave) {
    $oElement->setText($oTA->sText());
    $oElement->save();
    $bOK = true;
} else {
    $sOnLoadScript = 'document.forms[0].TEXT.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("LongTextEditorTitle", true);
?>