Normally when you have a form with several text input fields, it is undesirable that the form gets submitted when the user hits ENTER in a field. Some people are pressing the enter key instead of the tab key to get to the next field. They often do that by accident or because they are accustomed to terminate field input that way. If a browser regards hitting ENTER in a text input field as a request to submit the form immediately, there is no sure way to prevent that.
Add the below script to the <head> section of your page. The following code disables the enter key so that visitors of your web page can only use the tab key to get to the next field.
ACF won't filter <p> and <br> tags because they are meant to be always enabled (because of architectural limitation). However, the data processor itself can filter out these tags, so enter can be disabled. See this JSFiddle.
I think you can use ACF to
I think you can use ACF to filter out <p> and <br> tags.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
super sebs
Hi,
lol, I wanted to ask the same question,
thank you the answer sebstefanov :)
Normally when you have a form
Normally when you have a form with several text input fields, it is undesirable that the form gets submitted when the user hits ENTER in a field. Some people are pressing the enter key instead of the tab key to get to the next field. They often do that by accident or because they are accustomed to terminate field input that way. If a browser regards hitting ENTER in a text input field as a request to submit the form immediately, there is no sure way to prevent that.
Add the below script to the <head> section of your page. The following code disables the enter key so that visitors of your web page can only use the tab key to get to the next field.
ACF won't filter <p> and <br>
ACF won't filter <p> and <br> tags because they are meant to be always enabled (because of architectural limitation). However, the data processor itself can filter out these tags, so enter can be disabled. See this JSFiddle.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+