maxHTMLLength and maxTextLength
RichTextEditor lets you use maxHTMLLength or maxTextLength to limit how much content a user can enter.
In this example, maxHTMLLength is set to 200 characters.
You can set the maximum number of characters, including HTML tags, allowed in RichTextEditor. The default is -1, which means no limit.
Example code
<link rel="stylesheet" href="/richtexteditor/rte_theme_default.css" />
<script type="text/javascript" src="/richtexteditor/rte.js"></script>
<script type="text/javascript" src='/richtexteditor/plugins/all_plugins.js'></script>
<div id="div_editor1">You can set the maximum number of characters, including HTML tags, allowed in RichTextEditor. The default is -1, which means no limit.</div>
<script>
var editor1 = new RichTextEditor("#div_editor1", { maxHTMLLength: 200 });
</script>