On Jun 14, 2011, at 10:38 PM, Mark Sobkowicz wrote:

> I dove in, and now I'm stuck.  I got the rails-ckeditor project working with 
> hobo, but the :html type is ignored.   In the gem documentation it says:
> 
> Then instead of the normal textarea helper from Rails use this one:
> 
>  <%= ckeditor_textarea("object", "field", :width => '100%', :height => 
> '200px') %>
> 
> So I need to add a tag:
> 
> <def attrs='name' tag='input' for='html'>
>  <%= ckeditor_textarea(???) %>
> </def>
> 
> 
> I can't get the ??? right.  The things I tried all threw errors.  Suggestions?

I've got this in one of my apps that uses CKEditor:

<def tag="input" for="raw_html" attrs="name">
  <%= ckeditor_textarea(*path_for_form_field) %>
</def>

(it's for raw_html rather than html types, but same difference)

You may have to fiddle with it a bit to get additional options, as I don't 
think you can splat an array and then tack hashy things on the end.

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to