<ul><li class="field"><cc1:Editor ID="Editor1" runat="server" /><br /><span class="desc"><asp:RequiredFieldValidator ID="rqrdcontent" runat="server" ControlToValidate="Editor1" ErrorMessage="You must enter description" Display="Dynamic" ValidationGroup="g" CssClass="input_error"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="regexpContent" runat="server" ErrorMessage="Description shouldn't be less than 30 characters" ValidationGroup="g" ControlToValidate="Editor1" CssClass="input_error" Display="Dynamic" ValidationExpression="(\s|.){30,1000}"></asp:RegularExpressionValidator></span></li></ul>
This is my editor controls which works fine with normal text, with out applying any styles or some other other, but when I apply styles the regular expression validator doesn't works, can some one tell me why it is happening. For example if I type some text and make it as bold the validation of regular expression didn't worked as per required