oProgramPath); $oFCKPath->addComponent("opt"); $oFCKPath->addComponent("fckeditor"); $oFCKPath->addComponent("fckeditor.php"); include_once($oFCKPath->sPath); $bOK = false; $sResponse = WYTS("RichTextSaved"); $sHelpFile = "richtext-fckeditor-element.php"; $oEditor =& new WYEditor(); $oElement =& new WYRichTextElement($oEditor->sFieldName, $oEditor->bGlobal, "", false); if ($oEditor->bSave) { $oElement->setText($goApp->sFormFieldValue('FCKeditor1')); $oElement->save(); $bOK = true; } else { $sContent = $oElement->sText(); $sCSSURL = $goApp->sFormFieldValue(WY_QK_RICH_TEXT_CSS); } $oFCKBaseURL = od_clone($goApp->oProgramURL); $oFCKBaseURL->addComponent("opt"); $oFCKBaseURL->addComponent("fckeditor"); $goApp->outputWarningPanels(); // give App a chance to say something ?> <?php WYTSD("RichTextEditorTitle", true); ?> sCharsetMetatag(); ?> bSave) $bDidSave = true; else if (!isset($bDidSave)) $bDidSave = false; ?>
WebYep Debug Mode!"; ?>

" . $oEditor->sFieldName; ?>

BasePath = $oFCKBaseURL->sURL(false, false, true) . "/"; $oInitCodePath = od_clone($goApp->oProgramPath); $oInitCodePath->addComponent("opt"); $oInitCodePath->addComponent("fckeditor_init.php"); $oFCKeditor->Config['EditorAreaCSS'] = $sCSSURL; $oFCKeditor->Config['ToolbarComboPreviewCSS'] = $sCSSURL; if ($oInitCodePath->bExists()) include_once($oInitCodePath->sPath); else { $oFCKeditor->Config['AutoDetectLanguage'] = true ; $oFCKeditor->Config['DefaultLanguage'] = 'en' ; $oFCKeditor->Config['StartupFocus'] = true; $oFCKeditor->Config['AutoDetectPasteFromWord'] = true; } $oFCKeditor->Width = "100%"; $oFCKeditor->Height = "100%"; $oFCKeditor->Value = $sContent; $oFCKeditor->Create(); ?>
" onClick="window.close();">">
sHelpLink($sHelpFile); ?> "; echo "
$sResponse
"; if ($bOK) echo WYEditor::sPostSaveScript(); else echo "

" . webyep_sBackLink() . "

"; echo ""; }?>