Class: Tags::RhinoEditor
- Inherits:
-
Base
- Object
- Base
- Tags::RhinoEditor
- Includes:
- Placeholderable
- Defined in:
- app/helpers/richer_text/tag_helper.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'app/helpers/richer_text/tag_helper.rb', line 25 def render = @options.stringify_keys add_default_name_and_id() ["input"] ||= dom_id(object, [["id"], :rhino_text_input].compact.join("_")) if object ["value"] = .fetch("value") { value&.to_editor_format } ["serializer"] = .fetch("serializer") { "html"} @template_object.rhino_text_area_tag(.delete("name"), ["value"], .except("value")) end |