Hi,
I currently doing my 1st ever implementation of CK Editior 3.2 on a Linux Host and a MySQL database and everything is working fine expect when an empty text field is posted from a form it ends up with a <br /> in the db.
This is a problem as I need to be able to check if text fields are empty (or not) for display purposes on web pages.
Any help would be greatly appreciated.
Thanks
Eoin
I currently doing my 1st ever implementation of CK Editior 3.2 on a Linux Host and a MySQL database and everything is working fine expect when an empty text field is posted from a form it ends up with a <br /> in the db.
This is a problem as I need to be able to check if text fields are empty (or not) for display purposes on web pages.
Any help would be greatly appreciated.
Thanks
Eoin
Re: Empty text fields submitted with BR
Jay Jennings
PS - Just played with this and yes, inserting the P tags in the textarea worked for me -- except that I have multiple editors behind a tabbed control, and when I tab from one to the other it then inserts the BR tag. Bah!
Re: Empty text fields submitted with BR
I haven't checked if it's a Firefox only issue but I ended up writing a bit of code to check if the textarea field only contained a "<br />" and if so then remove it leaving me with a empty field in the db which is what I wanted.
Thanks
Eoin