Issues with Rich Text Box

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dovi
Forum Newbie
Posts: 1
Joined: Thu Oct 06, 2005 6:16 am

Issues with Rich Text Box

Post by dovi »

When editing a rich text box with basic word processing functions. The fonts change size while editing and when you try change them back all the content in the text box vanishes. It seems to happen when one copies nad pastes from Word? Any ideas why it could do this,

Here is some code that I use below:
cotent in Text box is saved as $ testmony

$testemony = strip_tags($testemony,"<font><br><ol><li><hr><b><u><strong><em>");
$testemony = str_replace("\n","<br>", $testemony);
$testemony = str_replace("&nbsp;"," ", $testemony);

writeRichText('testemony', '$testemony','style.css', 520, 600, true, false, false );";
I also use an Rtesafe function to returns safe code for preloading in the RTE
Post Reply