Rich Text Editor Script

Rich Text Editor script allows the user to easily format the contents entered, such as to make it bold, change its size, color etc. Allows user to replace a form's textarea with a custom one that supports WYSIWYG format editing. Rich Text Editor is an extremely simple and easy to use javascript based HTML WYSIWYG editor.


  • Rich Text Editor is a multi platform compatible script.
  • Allows WYSIWYG HTML TextArea replacement.
  • Provides Advanced text editing.
  • Simple and easy to implement into any existing content management system or other web application.
  • No programming or javascript knowledge is required.



Bold Underline Italic Align Left Align Center Align Right Undo Redo T


<!-- Script by -->
<!-- More scripts -->
<script type="text/javascript" src="hrichtexteditor/editor.js"></script>
<form name="edit">
<td><a href="javascript:editorCommand('content', 'Bold', '');" ><img src="hrichtexteditor/images/bold.gif" width="25" height="24" alt="Bold" title="Bold" border="0"></a></td>
<td><a href="javascript:editorCommand('content', 'Underline', '')" ><img src="hrichtexteditor/images/underline.gif" width="25" height="24" alt="Underline" title="Underline" border="0"></a></td>
<td><a href="javascript:editorCommand('content', 'Italic', '')" ><img src="hrichtexteditor/images/italic.gif" width="25" height="24" alt="Italic" title="Italic" border="0"></a></td>
<td><a href="javascript:editorCommand('content', 'justifyleft', '')" ><img src="hrichtexteditor/images/j_left.gif" width="25" height="24" alt="Align Left" title="Align Left" border="0"></a></td>
<td><a href="javascript:editorCommand('content', 'justifycenter', '')" ><img src="hrichtexteditor/images/j_center.gif" width="25" height="24" alt="Align Center" title="Align Center" border="0"></a></td>
<td><a href="javascript:editorCommand('content', 'justifyright', '')" ><img src="hrichtexteditor/images/j_right.gif" width="25" height="24" alt="Align Right" title="Align Right" border="0"></a></td>
<td><a href="javascript:editorCommand('content', 'undo', '')" ><img src="hrichtexteditor/images/undo.gif" width="25" height="24" alt="Undo" title="Undo" border="0"></a></td>
<td><a href="javascript:editorCommand('content', 'redo', '')" ><img src="hrichtexteditor/images/redo.gif" width="25" height="24" alt="Redo" title="Redo" border="0"></a></td>
<td><select name=sel id="sel"
onchange="javascript:editorCommand('content', 'FontSize',document.edit.sel[document.edit.sel.selectedIndex].text)">
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<td><input type="hidden" name="hexval" id="hx" value="#000000">
<font name="disp" id="cv" readonly onmouseover="showtab(event)" onmouseout="deltab()" style="color:#000000;font-size:25px;">T</font>
<div id="tb" style="position: absolute;top: 560px; left: 220px; ; display: none;" onmouseout="deltaba()">
<table cellpadding=0 cellspacing=0 style="border: 1px black;">
<script type="text/javascript">
document.write("<tr style=\"border: 1px black;\">");
var ii = Math.round(i);
var jj = Math.round(j);
var kk = Math.round(k);
if(ii == 255 && jj == 255 && kk == 255)
document.write("<td onmouseover='showval("+ii+","+jj+","+kk+")' \
onclick='clicked("+ii+","+jj+","+kk+")' style='border: 1px solid black; width:8px; height: 8px; background-color: rgb("+ii+","+jj+","+kk+");'> \ </td>");
document.write("<td onmouseover='showval("+ii+","+jj+","+kk+")' \
onclick='clicked("+ii+","+jj+","+kk+")' style=\"border: 1px solid black; width:8px; height: 8px; \ font-size: 5px; background-color: rgb("+ii+","+jj+","+kk+");\""+"> </td>");
<div align=center style="font-size: 10px; color:green;" id="dumdiv">
<a href="" id="dum" style="text-decoration:none; color: green;">H</a>
<script type="text/javascript">document.onload = ctck();</script>
<td width=20%></td>
<td colspan="12">
<script type="text/javascript">
displayEditor('content', '', 400, 200);
<!-- Script by -->

  • Release Date - 07-04-2009
  • Downloads : Version 1.0 - richtexteditor
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to


  • Download and Unzip to extract the files editor.js file and images folder.
  • Just copy the above code and paste into your file where you want the richtext editor.
  • Make sure that the downloaded folder and the file where the code is pasted are in the same path.
  • Simple and easy to use JavaScript HTML WYSIWYG Textarea editor.


Related Scripts

Free Javascript Scripts

Ask Questions

Ask Question