Method: Satis::Editor::Component#value

Defined in:
app/components/satis/editor/component.rb

#valueObject



34
35
36
37
38
39
40
41
42
# File 'app/components/satis/editor/component.rb', line 34

def value
  if content?
    html_escape_once(content)
  elsif options[:input_html]&.[](:value)
    options[:input_html][:value]
  elsif form
    form.object.send(attribute)
  end
end