user1234
user1234

Reputation: 335

tinyMCE error while form submission

I am using tinyMCE-4.0.16 in a form in cakePHP2.4. When i click on submit, form does not submit and gives following error in console

An invalid form control with name='data[Research][description]' is not focusable.

I am using HTML5 validation "required" in textarea.

Upvotes: 2

Views: 549

Answers (1)

groovenectar
groovenectar

Reputation: 2928

If the textarea is hidden, but it is set to "required" via HTML, it will throw that error... You're going to have to either remove "required," or have the element displayed when the form submits...

Upvotes: 2

Related Questions