class Formtastic::Inputs::AceEditorInput

Public Instance Methods

editor_options() click to toggle source
# File lib/formtastic/inputs/ace_editor_input.rb, line 20
def editor_options
  return {id: input_html_options[:id] + "_editor",
          class: "ace-editor-container",
          style: "height: 350px; width: 75%"}
end
to_html() click to toggle source
# File lib/formtastic/inputs/ace_editor_input.rb, line 6
def to_html
  input_wrapping do
    label_html <<
    template.content_tag(:div, input_html_options.merge(editor_options)) do
      object.send(method).try :html_safe
    end <<
    builder.hidden_field(input_name)
  end
end
wrapper_html_options() click to toggle source
Calls superclass method
# File lib/formtastic/inputs/ace_editor_input.rb, line 16
def wrapper_html_options
  super.merge(:class => "flexible-text-area")
end