Class: RichInput
- Inherits:
-
Formtastic::Inputs::TextInput
- Object
- Formtastic::Inputs::TextInput
- RichInput
- Defined in:
- app/inputs/rich_input.rb
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/inputs/rich_input.rb', line 4 def to_html scope_type = object_name scope_id = object.id = Rich.([:config], scope_type, scope_id) input_wrapping do label_html << builder.text_area(method, ) << "<script>CKEDITOR.replace('#{dom_id}', #{.to_json.html_safe});</script>".html_safe end end |