Sha256: ebcba56a008c48ce13d5129c67e6be61c59b1be4106f10e97975689da7d4cab5

Contents?: true

Size: 1.3 KB

Versions: 2

Compression:

Stored size: 1.3 KB

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
compass-jquery-plugin-0.3.3.0 templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js
compass-jquery-plugin-0.3.2.8 templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js