HTML Editor for ASP.NET AJAX Professional Edition
LockedMessage Property
Server ReferenceWinthusiasm.HtmlEditorHtmlEditorLockedMessage
The name of a JavaScript function on the page to call when the the locked message box is about to be presented.
Declaration Syntax
C#
public string LockedMessage { get; set; }
Remarks
The client-side editor will call the named JavaScript function on the page whenever the locked message box is about to be presented. This allows the developer to take appropriate action, such as overriding the messageHtml.

The messageInfo object passed as an argument contains the following members:

  • countType
  • count
  • limit
  • messageTitle
  • messageHtml

The developer should modify the messageInfo.messageTitle and/or messageInfo.messageHtml member to override the editor's default presentation.

Examples
Set the property declaratively in the HtmlEditor tag:
CopyC#
LockedMessage = "MyLockedMessageHandler"
Page JavaScript function:
CopyC#
function MyLockedMessageHandler(editor, messageInfo)
{
    messageInfo.messageTitle = "My Message Title";
    messageInfo.messageHtml = 
       "The limit of " + messageInfo.limit + " has been exceeded."; 
}

Assembly: Winthusiasm.HtmlEditor (Module: Winthusiasm.HtmlEditor) Version: 2.7.0.0 (2.7.0.0)