(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(f,h){var g=this;if(f.getParam("fullscreen_is_enabled")){return}function e(){var c=f.getDoc(),l=c.body,a=c.documentElement,d=tinymce.DOM,b=g.autoresize_min_height,k;k=tinymce.isIE?l.scrollHeight:a.offsetHeight;if(k>g.autoresize_min_height){b=k}d.setStyle(d.get(f.id+"_ifr"),"height",b+"px");if(g.throbbing){f.setProgressState(false);f.setProgressState(true)}}g.editor=f;g.autoresize_min_height=f.getElement().offsetHeight;f.onChange.add(e);f.onSetContent.add(e);f.onPaste.add(e);f.onKeyUp.add(e);f.onPostRender.add(e);if(f.getParam("autoresize_on_init",true)){f.onInit.add(function(a,b){a.setProgressState(true);g.throbbing=true;a.getBody().style.overflowY="hidden"});f.onLoadContent.add(function(a,b){e();setTimeout(function(){e();a.setProgressState(false);g.throbbing=false},1250)})}f.addCommand("mceAutoResize",e)},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)})();