PDA

View Full Version : How to correctly test if HtmlEditor is empty?



dbassett74
20 Jul 2009, 12:50 PM
The getValue of the HtmlEditor seems a little quirky. It seems that upon initial load, before typing anything in, HtmlEditor.getValue() == '' return true. But after typing something in, and then deleting everything, HtmlEditor.getValue == '' is no longer true, even though there is no text in there. Can someone please shed some light on this? I even tried looking at getValue() in a MessageBox, and it seems like it is '', but testing for that returns false.


Thanks.

steffenk
20 Jul 2009, 1:22 PM
what is result of Ext.isEmpty(HtmlEditor.getValue()) ?

dbassett74
21 Jul 2009, 4:43 AM
The result is '' no matter what.