Textformatierung direkt bei "Neues Eintragen"

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Nicolinux
Posts: 12
Joined: Thu Jul 22, 2004 9:12 pm

Textformatierung direkt bei "Neues Eintragen"

Post by Nicolinux »

Hi,

da wir jetzt die eingetragenen Artikel nicht mehr frei geben müssen, werden diese sofort aufgenomen. Leider werden aber keine Zeilenumbrüche eingefügt sodass der Text ziemlich schlecht zu lesen ist. Gibt es da eine Formatierungsmöglichkeit?

Danke
Stefan
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ja. Öffne die save.php und ändere diese Zeile

Code: Select all

$db->query("INSERT INTO ".SQLPREFIX."faqdata (lang,active,rubrik,thema,content,keywords,author,email,comment,datum) VALUES ('".$lang."', 'no', '".$_REQUEST["rubrik"]."', '".$thema."', '".$content."', '".$keywords."', '".$author."', '".$_REQUEST["usermail"]."', 'y', '".$datum."')");
in das hier:

Code: Select all

$db->query("INSERT INTO ".SQLPREFIX."faqdata (lang,active,rubrik,thema,content,keywords,author,email,comment,datum) VALUES ('".$lang."', 'no', '".$_REQUEST["rubrik"]."', '".$thema."', '".nl2br($content)."', '".$keywords."', '".$author."', '".$_REQUEST["usermail"]."', 'y', '".$datum."')");
Natürlich könnte man den WYSIWYG Editor auch in den öffentlichen Bereich einbauen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Nicolinux
Posts: 12
Joined: Thu Jul 22, 2004 9:12 pm

Post by Nicolinux »

Hi,

leider hat das nicht funktioniert. Der ganze Text wird trotzdem noch in einer Zeile dargestellt -> keine Zeilenumbrüche.

Sorry


Stefan
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich guck morgen noch mal, eigentlich sollte das tun.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Nicolinux
Posts: 12
Joined: Thu Jul 22, 2004 9:12 pm

Post by Nicolinux »

Bump!

Hi,

gibt's dazu Neuigkeiten? Wurde das vielleicht in der neuesten Version beachtet?

Vielen Dank nochmal.

Grüße
Stefan
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

also, ich habe das getestet und es ging bei mir. Fügst evtl Text von einer anderen Anwednung wie Word ein?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Nicolinux
Posts: 12
Joined: Thu Jul 22, 2004 9:12 pm

Post by Nicolinux »

Nein. Ich gebe es direkt im Browser ein. Firefox unter Linux.

Grüße
Stefan
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich werde das mal die Tage austesten.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply