Sha256: b08e7fc79e94fd754c7b1643a5ecf54c1a13b0596c8b45467f820cf9466ba32f

Contents?: true

Size: 1.6 KB

Versions: 109

Compression:

Stored size: 1.6 KB

Contents

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

109 entries across 107 versions & 12 rubygems

Version Path
goldencobra-1.4.27 app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js
goldencobra-1.4.0 app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js
goldencobra-1.3.4 app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js
goldencobra-1.2.8 app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js
goldencobra-1.2.0 app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js
locomotive-tinymce-rails-3.5.8.2 vendor/assets/javascripts_old/tinymce/plugins/autoresize/editor_plugin.js
locomotive-tinymce-rails-3.5.8.1 vendor/assets/javascripts_old/tinymce/plugins/autoresize/editor_plugin.js
goldencobra-1.1.0 app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js
locomotive-tinymce-rails-3.4.7.5 vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js
goldencobra-1.0.9.3 app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js
gluttonberg-core-2.5.4 app/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
gluttonberg-core-2.5.3 app/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
locomotive-tinymce-rails-3.4.7.4 vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js
gluttonberg-core-2.5.2 app/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
gluttonberg-core-2.5.1 app/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
gluttonberg-core-2.5 app/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
locomotive-tinymce-rails-3.4.7.3 vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js
rostra-0.3.6 app/assets/javascripts/rostra/tiny_mce/plugins/autoresize/editor_plugin.js
rostra-0.3.5 app/assets/javascripts/rostra/tiny_mce/plugins/autoresize/editor_plugin.js
tinymce_fm-0.0.2 vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js