Sha256: 418dd95a8780d162a068477549b43b8797de824ca69aedcf1a8ca5427663f034

Contents?: true

Size: 1.47 KB

Versions: 423

Compression:

Stored size: 1.47 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 j,i=a.getDoc(),f=i.body,l=i.documentElement,h=tinymce.DOM,k=d.autoresize_min_height,g;g=tinymce.isIE?f.scrollHeight:(tinymce.isWebKit&&f.clientHeight==0?0:f.offsetHeight);if(g>d.autoresize_min_height){k=g}if(d.autoresize_max_height&&g>d.autoresize_max_height){k=d.autoresize_max_height;f.style.overflowY="auto";l.style.overflowY="auto"}else{f.style.overflowY="hidden";l.style.overflowY="hidden";f.scrollTop=0}if(k!==e){j=k-e;h.setStyle(h.get(a.id+"_ifr"),"height",k+"px");e=k;if(tinymce.isWebKit&&j<0){b()}}}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.onLoad.add(b);a.onLoadContent.add(b)}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

423 entries across 421 versions & 14 rubygems

Version Path
wagn-1.14.0.pre1 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.13.0 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.13.0.pre2 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.13.0.pre1 public/assets/tinymce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.9.0 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.8.3 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.7.5 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.6.3 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
wagn-1.13.0.pre public/assets/tinymce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.7.4 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.8.2 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.8.1 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
alchemy_cms-2.7.3 vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js
wagn-1.12.13 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.12.12 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.12.11 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.12.10 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.12.9 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.12.8 public/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.12.7 public/assets/tinymce/plugins/autoresize/editor_plugin.js