Setting dhtmlxeditor maximum length

How i can set dhtmlxeditor maximum length?

Thanks.

editor.edDoc is editor document. And you may set event listeners to it. For example:

var maxCount = 100; var content = ""; dhtmlxEvent(editor.edDoc, "keyup", function(e){ var body = editor.edDoc.body; var text = (body.textContent||body.innerText); if (text.length>maxCount) editor.edDoc.body.innerHTML = content; else content = editor.edDoc.body.innerHTML; })