Class: Tags::RhinoEditor

Inherits:
Base
  • Object
show all
Includes:
Placeholderable
Defined in:
app/helpers/richer_text/tag_helper.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



25
26
27
28
29
30
31
32
33
# File 'app/helpers/richer_text/tag_helper.rb', line 25

def render
  options = @options.stringify_keys
  add_default_name_and_id(options)
  options["input"] ||= dom_id(object, [options["id"], :rhino_text_input].compact.join("_")) if object
  options["value"] = options.fetch("value") { value&.to_editor_format }
  options["serializer"] = options.fetch("serializer") { "html"}

  @template_object.rhino_text_area_tag(options.delete("name"), options["value"], options.except("value"))
end