class RichInput

Public Instance Methods

to_html() click to toggle source
# File app/inputs/rich_input.rb, line 4
def to_html

  scope_type = object_name
  scope_id = object.id
  editor_options = Rich.options(options[:config], scope_type, scope_id)

  input_wrapping do
    label_html <<
    builder.text_area(method, input_html_options) <<
    "<script>CKEDITOR.replace('#{dom_id}', #{editor_options.to_json.html_safe});</script>".html_safe  
  end
end