|
|
|
@ -7,7 +7,9 @@ module RailsKindeditor
|
|
|
|
|
input_html = input_html.merge(style: 'display:none')
|
|
|
|
|
output = ActiveSupport::SafeBuffer.new
|
|
|
|
|
output << text_area_tag(name, content, input_html)
|
|
|
|
|
output << javascript_tag(js_replace(id, options.merge(window_onload: 'true')))
|
|
|
|
|
output << javascript_tag(js_replace(id, options.merge(window_onload: 'true',
|
|
|
|
|
:autoHeightMode=>true,
|
|
|
|
|
afterCreate: 'eval(function(){enablePasteImg(self);this.loadPlugin("autoheight")})')))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def kindeditor(name, method, options = {})
|
|
|
|
|