Class: Tags::ActionText
- Inherits:
-
Base
- Object
- Base
- Tags::ActionText
- Defined in:
- app/helpers/action_text/tag_helper.rb
Instance Method Summary collapse
Instance Method Details
#editable_value ⇒ Object
47 48 49 |
# File 'app/helpers/action_text/tag_helper.rb', line 47 def editable_value value&.body.try(:to_trix_html) end |
#render ⇒ Object
40 41 42 43 44 45 |
# File 'app/helpers/action_text/tag_helper.rb', line 40 def render = @options.stringify_keys add_default_name_and_id() ["input"] ||= dom_id(object, [["id"], :trix_input].compact.join("_")) if object @template_object.rich_text_area_tag(.delete("name"), editable_value, ) end |