Jump to content

rich text editor


Nothadoth

Recommended Posts

hey guys,

 

i really need help. im struggling to hell to find a premade script for what i need.

 

I have my content stored in a database. I need a rich text editor (so the user doesnt need to include HTML) so they can edit contact. So a rich text editor that displays whats in the current content field and can be edited so on submit it updates the field to have the new text. Get what i mean?

 

can anyone help me find one?

 

thanks

 

Link to comment
https://forums.phpfreaks.com/topic/58480-rich-text-editor/
Share on other sites

Okay..

Make one.

<?php
$contents = file_get_contents('script.txt');
if ($_POST){
$contents = $_POST['contents'];
$open = fopen('script.txt', 'w');
$do = fwrite($open, $contents);
fclose($open);
if (isset($do)){
echo 'Saved.'; }
else { 
echo 'Failed'; }
} 
echo '<form action="index.php" method="post"><textarea name="contents">' . $contents . '</textarea><input type="submit" value="Save"></form>';
?>

Link to comment
https://forums.phpfreaks.com/topic/58480-rich-text-editor/#findComment-289998
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.