terebentina / sco.js

Javascript extensions for twitter bootstrap
http://projects.5mins.me/sco.js
Apache License 2.0
454 stars 107 forks source link

Support wysiwyg editors in valid #2

Closed terebentina closed 11 years ago

terebentina commented 11 years ago

Since most wysiwyg editors are using a separate iframe/element to write the text, the textarea of the form is not updated before submitting the form. So even if the user writes something in the editor, the validation plugin thinks the textarea is empty. A onBeforeValidation callback is required to give the chance to the editor to update the textarea