Class: RichPickerInput
- Inherits:
-
Formtastic::Inputs::StringInput
- Object
- Formtastic::Inputs::StringInput
- RichPickerInput
- Includes:
- Formtastic::Helpers::InputHelper
- Defined in:
- app/inputs/rich_picker_input.rb
Instance Attribute Summary collapse
-
#editor_options ⇒ Object
readonly
Returns the value of attribute editor_options.
Instance Method Summary collapse
Instance Attribute Details
#editor_options ⇒ Object (readonly)
Returns the value of attribute editor_options.
5 6 7 |
# File 'app/inputs/rich_picker_input.rb', line 5 def @editor_options end |
Instance Method Details
#to_html ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/inputs/rich_picker_input.rb', line 7 def to_html @editor_options = Rich.([:config], object_name, object.id) = { :class => 'rich-picker', :style => [:style] } input_wrapping do label_html << input_field() << << preview << javascript end end |