Methods

Instance Public methods

editable_value()

📝 Source code
# File actiontext/app/helpers/action_text/tag_helper.rb, line 52
    def editable_value
      value&.body.try(:to_trix_html)
    end
🔎 See on GitHub

render()

📝 Source code
# File actiontext/app/helpers/action_text/tag_helper.rb, line 45
    def render
      options = @options.stringify_keys
      add_default_name_and_id(options)
      options["input"] ||= dom_id(object, [options["id"], :trix_input].compact.join("_")) if object
      @template_object.rich_text_area_tag(options.delete("name"), options.fetch("value") { editable_value }, options.except("value"))
    end
🔎 See on GitHub