PDA

View Full Version : How to show Invalid image for htmlEditor



AtulDawkhare
25 Sep 2012, 10:38 PM
Hi,
I am using ExtJS 4.1.

My requirement is , I have a form with htmlEditor. Now I want to do validation, when user don't' give any inputs then I want to show invalid icon, same like as show in image.

38931
my code for htmlEditor is



{
xtype : 'htmleditor',
name : 'desc',
id:'htmlEditorID',
cls:'htmlEditorID',
fieldLabel : 'Description',
height : 200,
width : '90%',
anchor : '90% 50%',
allowBlank: false,
cls:'forumTitle',
value:postDetailsJson[0].description
},


Even I put allowBlank as false, still it is not working.

I want to show the Red Icon [i.e. shown in image] in front of the fieldLable.. if user don't type anything in htmlEditor.

Please suggest the possible way to achieve this.

scottmartin
26 Sep 2012, 6:39 AM
This is not available by default. See if this thread will help. You will have to verify it works, or make adjustments for Ext4:
http://www.sencha.com/forum/showthread.php?76932

Scott.