NicEdit Example

NicEdit example

HTML

<script src="https://mail.hatech.de/nicedit.js"></script>
<textarea id="area1" name="area1" cols="40">
 THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!

For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.

The next release would be Beta 3, planned for August 30th.

The signatures for the release can be found in the manifest or on the QA site.

Thank you for helping us make PHP better. 
</textarea>
<div id="counter"></div>

CSS

.wordwrap { 
   white-space: pre-wrap;      /* CSS3 */   
   white-space: -moz-pre-wrap; /* Firefox */    
   white-space: -pre-wrap;     /* Opera <7 */   
   white-space: -o-pre-wrap;   /* Opera 7 */    
   word-wrap: break-word;      /* IE */
}

JavaScript

nicEditors.allTextAreas();
$("div.nicEdit-main").addClass('wordwrap');