Mar 12, 2012, 12:04 PM
How to Validate HtmlEditor
Hi friends,
I am using HtmlEditor in mypage (This editor is in the window).
I dont want user to send message with empty text (user might have entered some spaces and pressed enter key).
Please tell me how to validate this for HtmlEditor.
Here is my code
Thank you.
I am using HtmlEditor in mypage (This editor is in the window).
I dont want user to send message with empty text (user might have entered some spaces and pressed enter key).
Please tell me how to validate this for HtmlEditor.
Here is my code
<ext:HtmlEditor ID="editor" runat="server" Anchor="100%" EnableSourceEdit="false"
EnableLinks="false" EnableFontSize="false" EnableColors="false" EnableAlignments="false" MaskRe="[^<>]" >
<Listeners>
<AfterRender Handler="#{editor}.setReadOnly(false);" />
</Listeners>
</ext:HtmlEditor>
There is no property like "AllowBlank".Thank you.