tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(e,t){var i=this,o=0;function n(){var t,a,r=e.getDoc(),s=r.body,m=r.documentElement,d=tinymce.DOM,u=i.autoresize_min_height;(a=tinymce.isIE?s.scrollHeight:tinymce.isWebKit&&0==s.clientHeight?0:s.offsetHeight)>i.autoresize_min_height&&(u=a),i.autoresize_max_height&&a>i.autoresize_max_height?(u=i.autoresize_max_height,s.style.overflowY="auto",m.style.overflowY="auto"):(s.style.overflowY="hidden",m.style.overflowY="hidden",s.scrollTop=0),u!==o&&(t=u-o,d.setStyle(d.get(e.id+"_ifr"),"height",u+"px"),o=u,tinymce.isWebKit&&t<0&&n())}e.getParam("fullscreen_is_enabled")||(i.editor=e,i.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight)),i.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0)),e.onInit.add((function(e){e.dom.setStyle(e.getBody(),"paddingBottom",e.getParam("autoresize_bottom_margin",50)+"px")})),e.onChange.add(n),e.onSetContent.add(n),e.onPaste.add(n),e.onKeyUp.add(n),e.onPostRender.add(n),e.getParam("autoresize_on_init",!0)&&(e.onLoad.add(n),e.onLoadContent.add(n)),e.addCommand("mceAutoResize",n))},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}}),tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin);
