Class: EpicEditorInput
- Inherits:
-
Formtastic::Inputs::TextInput
- Object
- Formtastic::Inputs::TextInput
- EpicEditorInput
- Defined in:
- lib/formtastic-epiceditor/inputs/epic_editor_input.rb
Overview
app/inputs/my_special_string_input.rb use with :as => :my_special_string
Instance Method Summary collapse
Instance Method Details
#input_html_options ⇒ Object
4 5 6 7 8 |
# File 'lib/formtastic-epiceditor/inputs/epic_editor_input.rb', line 4 def { :class => "epiceditor" }.merge(super) end |
#to_html ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/formtastic-epiceditor/inputs/epic_editor_input.rb', line 10 def to_html input_wrapping do label_html << "<div id='#{[:id]}-epiceditor' class='epiceditor-container'></div><div style='clear:both;'></div>".html_safe << builder.hidden_field(method, ) << buildInitScript([:id]) end end |