galetahub/ckeditor — pull request #141 by itrigga (2012-06-20 12:06:01+00:00)
Title: fixed issue with simple_form integration not respecting a given :id option for the form elements

Hi,

Thanks for the ckeditor gem, it's saved us a fair bit of work here.

I found an issue with the simple_form integration - if you choose to provide a custom :id option to the input, as in -

<%= f.input :content_html, :as => :ckeditor, :input_html => { :id=>"(some custom id)"} %>

- then it wasn't being passed through to the generated javascript or textarea.

This isn't ordinarily a problem, until you have several forms on the same page which refer to the same model type - in our case, several comment forms on the same page, with custom ids to separate the inputs.

It's a simple two-line fix - done in the pull request.

Thanks again,

Al