|
|
|
@ -9,9 +9,7 @@ module RailsKindeditor
|
|
|
|
|
output << text_area_tag(name, content, input_html)
|
|
|
|
|
output << javascript_tag(js_replace(id, options.merge(window_onload: 'true',
|
|
|
|
|
:autoHeightMode=>true,
|
|
|
|
|
afterCreate: 'eval(function(){enablePasteImg(self);this.loadPlugin("autoheight");$(this.toolbar.div).hide();})',
|
|
|
|
|
afterFocus:'eval(function(){$(this.toolbar.div).show(); })',
|
|
|
|
|
afterBlur:'eval(function(){if(this.edit.html().trim() == "" ){$(this.toolbar.div).hide();}})'
|
|
|
|
|
afterCreate: 'eval(function(){enablePasteImg(self);this.loadPlugin("autoheight")})'
|
|
|
|
|
)))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -23,9 +21,7 @@ module RailsKindeditor
|
|
|
|
|
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,
|
|
|
|
|
afterCreate: 'eval(function(){enablePasteImg(self);this.loadPlugin("autoheight");$(this.toolbar.div).hide();})',
|
|
|
|
|
afterFocus:' eval(function(){$(this.toolbar.div).show(); })',
|
|
|
|
|
afterBlur:'eval(function(){if(this.edit.html().trim() == ""){$(this.toolbar.div).hide();}})'
|
|
|
|
|
afterCreate: 'eval(function(){enablePasteImg(self);this.loadPlugin("autoheight")})'
|
|
|
|
|
)))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|