Sha256: bd8e1dc70520f05c7aaf31d8368a97cd4001d5360ca36bf1b9b5dfc0dbc54800
Contents?: true
Size: 767 Bytes
Versions: 25
Compression:
Stored size: 767 Bytes
Contents
class TextareaTinymceInput < SimpleForm::Inputs::Base def input(wrapper_options = nil) out = ActiveSupport::SafeBuffer.new # prepare options new_html_options = prepare_html_options(wrapper_options) #input_html_classes.unshift(" currency") #input_html_options[:type] ||= input_type if html5? #template.content_tag(:span, "$", class: "add-on") + #@builder.text_field(attribute_name, input_html_options) out << @builder.text_area(attribute_name, new_html_options) out end def prepare_html_options(wrapper_options=nil) new_options = {} new_options[:class] = [input_html_options[:class], options[:class], 'tinymce'].compact merge_wrapper_options(input_html_options.merge(new_options), wrapper_options) end end
Version data entries
25 entries across 25 versions & 1 rubygems