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
goldencobra-2.3.4 app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autoresize/editor_plugin.js
goldencobra-2.3.3 app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autoresize/editor_plugin.js
wagn-1.21.1 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
decko-0.3.2 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
decko-0.3.1 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
decko-0.3.0 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
decko-0.2.2 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
decko-0.2.1 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
decko-0.2 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
decko-0.1 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.21.0 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.20.4 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.20.3 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.20.2 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.20.1 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.20.0 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
ish_lib-0.0.8 vendor/assets/javascripts/.trash/tinymce/plugins/autoresize/editor_plugin.js
ish_lib-0.0.8 vendor/assets/themeforest/alpona/html/js/tiny_mce/plugins/autoresize/editor_plugin.js
wagn-1.19.6 rails/assets/tinymce/plugins/autoresize/editor_plugin.js
wagn-1.19.5 rails/assets/tinymce/plugins/autoresize/editor_plugin.js