Sha256: 96ced7f57f2fa15b94a7afa015e777f08e40f516c3b6d8828f62357867599422
Contents?: true
Size: 868 Bytes
Versions: 8
Compression:
Stored size: 868 Bytes
Contents
module Ckeditor module Helpers module FormHelper extend ActiveSupport::Concern include ActionView::Helpers::TagHelper include ActionView::Helpers::JavaScriptHelper def cktext_area(object_name, method, options = {}) options = { :language => I18n.locale.to_s }.merge(options) input_html = (options.delete(:input_html) || {}) hash = input_html.stringify_keys instance_tag = ActionView::Base::InstanceTag.new(object_name, method, self, options.delete(:object)) instance_tag.send(:add_default_name_and_id, hash) output_buffer = ActiveSupport::SafeBuffer.new output_buffer << instance_tag.to_text_area_tag(input_html) output_buffer << javascript_tag(Utils.js_replace(hash['id'], options)) output_buffer end end end end
Version data entries
8 entries across 8 versions & 1 rubygems