Sha256: a2ccc15f0519630242b56bcf1ed4b51354a8ee04815cc97ef2539ec3b9ee2b02
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
# encoding: utf-8 module Ueditor module Helpers module FormTagHelper extend ActiveSupport::Concern include ActionView::Helpers::JavaScriptHelper def ueditor_area_tag(name, value = nil, options = {}) element_id = sanitize_to_id(name) input_html = { :id => element_id }.merge( options.delete(:input_html) || {} ) output_buffer = ActiveSupport::SafeBuffer.new output_buffer << text_area_tag(name, value, input_html) output_buffer << javascript_tag(Utils.js_replace(element_id, options)) output_buffer end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ueditor-0.0.2 | lib/ueditor/helpers/form_tag_helper.rb |