Ninja Editor 
Playground
Download
Source code of Ninja editorLicense: BSD
Comments and suggestions?
How use it
echo js_insert_ninja();//Insert js code
echo css_insert_ninja('450px');//Insert CSS Style
echo html_insert_ninja('comments');//Insert Editor panel
$body = nl2br(text_process($this->input->post("comments")));//Parser
This page source code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>
<title>Ninja Editor</title>
<link rel="shortcut icon" href="/favicon.gif" type="image/gif"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="Ninja editor"/>
<meta name="description" content="Ninja editor"/>
<?php
echo js_insert_ninja();
echo css_insert_ninja('450px');
?>
</head>
<body>
<h3><img src='
'/> Ninja Editor <img src='
'/></h3>
<?php
$body = nl2br(text_process($this->input->post("comments")));
echo $body;
?>
<form method="post" action=""/>
<?php
echo html_insert_ninja('comments');
?>
<textarea name="comments" cols="40" rows="4" style="width: 450px;"/textarea>
<br/>
<input type="submit" value="WHARRGARBL!"/>
</form>
</body>
</html>