|
|
|
@ -14,7 +14,7 @@ module RailsKindeditor
|
|
|
|
|
output = ActiveSupport::SafeBuffer.new
|
|
|
|
|
output << text_area_tag(name, content, input_html)
|
|
|
|
|
output << javascript_tag(js_replace(id, options.merge(window_onload: 'true',
|
|
|
|
|
:autoHeightMode=>true,
|
|
|
|
|
:autoHeightMode=>false,
|
|
|
|
|
afterCreate: eval_str(at_id, at_type),
|
|
|
|
|
emotionsBasePath: 'http://' + Setting.host_name
|
|
|
|
|
)))
|
|
|
|
@ -29,7 +29,7 @@ module RailsKindeditor
|
|
|
|
|
output_buffer = ActiveSupport::SafeBuffer.new
|
|
|
|
|
output_buffer << build_text_area_tag(name, method, self, options, input_html)
|
|
|
|
|
output_buffer << javascript_tag(js_replace(input_html['id'],options.merge(window_onload: 'true',
|
|
|
|
|
:autoHeightMode=>true,
|
|
|
|
|
:autoHeightMode=>false,
|
|
|
|
|
afterCreate: eval_str(at_id, at_type),
|
|
|
|
|
emotionsBasePath: 'http://' + Setting.host_name
|
|
|
|
|
)))
|
|
|
|
|