HTML Editor for ASP.NET AJAX

Professional Edition
HtmlEditor GetCountStatus Method

Returns the current count information.

Namespace: Winthusiasm.HtmlEditor

Syntax
GetCountStatus()
Parameters
None.

Return Value
Returns a countStatus object, or null if there is no current count status.

Remarks
Use the GetCountStatus method to get status information about the current counts and limits.

The countStatus information includes the following:
  • warning (count exceeds warning percentage)
  • locked (count has reached or exceeded a limit)
  • error (count has exceeded a limit)
  • words (includes members for count and limit)
  • characters (includes members for count and limit)
  • length (includes members for count and limit)

Examples
First get a reference to the client-side editor:
var editor = $find('<%= Editor.ClientID %>');
Then use it to get the current count status information:
var countStatus = editor.GetCountStatus();
If not null, do something useful with it:
if (countStatus && countStatus.characters)
{
  if (countStatus.characters.count > 
      countStatus.characters.limit)
      ...
}