Hy!
Ich probiere schon seit Stunden verzweifelt den SPAW Editor in ein eigenes Modul einzubinden.
Hier der Code mit dem ich es versuche:
if ($GLOBALS['wysiwyg'])
{
global $prefix,$wysiwyg;
//GG spaw
$wysiwyg = 0;
$wysiwyg_review = 0;
if (@is_file('spaw/spaw_control.class.php')) {
include_once('spaw/spaw_control.class.php');
}
include('spaw/editor_cnf.php');
if (WYSIWYG_IS_ADMIN) { // Superuser & Admin
$wysiwyg_toolbar = $wysiwyg_admintoolbar;
} else {
if (WYSIWYG_IS_USER) { // User
$wysiwyg_toolbar = $wysiwyg_usertoolbar;
}
else { // Anonyme
$wysiwyg_toolbar = $wysiwyg_guesttoolbar;
}
}
$sw = new SPAW_Wysiwyg(
'text' /*name*/,
$seite["text"] /*value*/,
_DOC_LANGUAGE /*language*/,
$GLOBALS['wysiwyg_toolbar'] /*toolbar mode*/,
$GLOBALS['wysiwyg_btnset'] /*theme*/,
'500px' /*width*/,
'300px' /*height*/);
$textfeld = $sw->getHtml();
} else {
$textfeld = "<textarea name=text cols=100 rows=40>".$seite["text"]."</textarea>";
}
echo($textfeld);
Es werden in der Seite jedoch nur die Toolbars angezeigt. Dort wo der Text stehen sollte steht nur "The requested URL /empty.php was not found on this server."
Was mache ich falsch? :mad2:
ZitatWas mache ich falsch? :mad2:
was viele falsch machen, sie benutzen nicht die suchfunktion des Forums (siehe oben).
Thread : http://www.pragmamx.org/Forum-topic-16819-start-msg116353.html#msg116353
;)
ich hab ja gesucht und die oben angeführte lösung hat nicht geholfen