client_side_validations icon indicating copy to clipboard operation
client_side_validations copied to clipboard

Integrate it with ckeditor gem advice

Open seamusleahy opened this issue 14 years ago • 1 comments

I am using the ckeditor gem (galetahub/ckeditor) which adds a cktext_area form helper. I would like to integrate it with Client Side Validation. I have figured out Javascript part for updating the underlying textarea with changes from the editor.

How what do I need to call on the Ruby side to register the field to be validated? I noticed the output of window.new_job.validators... and the addition of the attribute data-validate="true".

seamusleahy avatar Jun 26 '12 21:06 seamusleahy

Sorry, I don't have any experience with ckeditor. :(

Currently the JavaScript API is not that great. In the 4.0 version of ClientSideValidations (the next version after 3.2) I am going to re-write the JavaScript public API to allow for easier hooking in.

bcardarella avatar Jul 09 '12 07:07 bcardarella