forked from science-ation/science-ation
Use FCKEditor for pagetexts if its available
This commit is contained in:
parent
186c0525b7
commit
7320bdbde8
@ -56,8 +56,23 @@
|
||||
echo "<form method=\"post\" action=\"pagetexts.php\">";
|
||||
echo "<input type=\"hidden\" name=\"action\" value=\"save\">\n";
|
||||
echo "<input type=\"hidden\" name=\"textname\" value=\"$r->textname\">\n";
|
||||
|
||||
if(is_dir("../fckeditor") && file_exists("../fckeditor/fckeditor.php"))
|
||||
{
|
||||
require_once("../fckeditor/fckeditor.php");
|
||||
|
||||
$oFCKeditor = new FCKeditor('text') ;
|
||||
$oFCKeditor->BasePath = "../fckeditor/";
|
||||
$oFCKeditor->Value = $r->text;
|
||||
$oFCKeditor->Width="100%";
|
||||
$oFCKeditor->Height=500;
|
||||
$oFCKeditor->Create() ;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<textarea rows=8 cols=60 name=\"text\">".htmlspecialchars($r->text)."</textarea>";
|
||||
echo "<br />";
|
||||
}
|
||||
echo "<input type=\"submit\" value=\"".i18n("Save Page Text")."\" />\n";
|
||||
echo "</form>";
|
||||
echo "<hr />";
|
||||
|
Loading…
x
Reference in New Issue
Block a user