Demo
OTHER EXAMPLES:
° Multiple instances (several editors working simultaneously) - open
° Page mode (editing the whole html pages) - open
° The editable regions demo - open
Code of the form is like the following:
<?php $class_path = "class/"; require_once($class_path."class.rich.php");
// Alternative method (independent to location of scripts using RE): // $class_path = "/class/"; //if editor is placed in www.yourdomain.com/class/ // require_once("/home/user/public_html/class/class.rich.php"); // or // require_once($_SERVER['DOCUMENT_ROOT'].$class_path."class.rich.php");
?>
<form method="post" onsubmit="save_in_textarea_all();"> <input type="hidden" name="action" value="submit"> <?php @extract($_POST);
if ($action == "submit") { echo "You wrote #1:<br>".stripslashes($rich_one)."<br><br>"; }
$val_one = 'blah blah blah';
$ed_1 = new rich('News #1', 'rich_one', $val_one, "100%", 300, "/rich/site/demo_rich/files/", "/demo_rich/files/"); $ed_1->active_mode();
$ed_1->draw(); // or echo $ed_1->get_rich();
?> <input type="submit" value="Ok"> </form>
|