101
102
103
104
105
106
107
108
109
110
111
|
# File 'lib/forge/config/initializers/ckeditor.rb', line 101
def cktext_area_tag(name, content = nil, options = {})
element_id = sanitize_to_id(name)
options = { :language => I18n.locale.to_s }.merge(options)
input_html = { :id => element_id }.merge( options.delete(:input_html) || {} )
output_buffer = ActiveSupport::SafeBuffer.new
output_buffer << text_area_tag(name, content, input_html)
output_buffer << javascript_tag(Utils.js_replace(element_id, options))
output_buffer
end
|