Sha256: b4311e496af6967c937eb7eb27ba7432ec50b2cee77f44d8b93aa2b12e84b44d

Contents?: true

Size: 1.62 KB

Versions: 58

Compression:

Stored size: 1.62 KB

Contents

/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

(function(){function a(c){var d=c.getStyle('overflow-y'),e=c.getDocument(),f=CKEDITOR.dom.element.createFromHtml('<span style="margin:0;padding:0;border:0;clear:both;width:1px;height:1px;display:block;">'+(CKEDITOR.env.webkit?'&nbsp;':'')+'</span>',e);e[CKEDITOR.env.ie?'getBody':'getDocumentElement']().append(f);var g=f.getDocumentPosition(e).y+f.$.offsetHeight;f.remove();c.setStyle('overflow-y',d);return g;};var b=function(c){if(!c.window)return;var d=c.document,e=new CKEDITOR.dom.element(d.getWindow().$.frameElement),f=d.getBody(),g=d.getDocumentElement(),h=c.window.getViewPaneSize().height,i=d.$.compatMode=='BackCompat'?f:g,j=a(i);j+=c.config.autoGrow_bottomSpace||0;var k=c.config.autoGrow_minHeight!=undefined?c.config.autoGrow_minHeight:200,l=c.config.autoGrow_maxHeight||Infinity;j=Math.max(j,k);j=Math.min(j,l);if(j!=h){j=c.fire('autoGrow',{currentHeight:h,newHeight:j}).newHeight;c.resize(c.container.getStyle('width'),j,true);}if(i.$.scrollHeight>i.$.clientHeight&&j<l)i.setStyle('overflow-y','hidden');else i.removeStyle('overflow-y');};CKEDITOR.plugins.add('autogrow',{init:function(c){c.addCommand('autogrow',{exec:b,modes:{wysiwyg:1},readOnly:1,canUndo:false,editorFocus:false});var d={contentDom:1,key:1,selectionChange:1,insertElement:1};c.config.autoGrow_onStartup&&(d.instanceReady=1);for(var e in d)c.on(e,function(f){var g=c.getCommand('maximize');if(f.editor.mode=='wysiwyg'&&(!g||g.state!=CKEDITOR.TRISTATE_ON))setTimeout(function(){b(f.editor);b(f.editor);},100);});}});})();

Version data entries

58 entries across 55 versions & 11 rubygems

Version Path
spiderfw-0.6.23 apps/core/forms/public/ckeditor/plugins/autogrow/plugin.js
ckeditor-3.7.0.rc2 vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js
quic_cms-0.1.4 app/assets/javascripts/quic_cms/ckeditor/plugins/autogrow/plugin.js
ckeditor_rails-3.6.2 vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js
rich-0.0.8 vendor/assets/ckeditor/ckeditor/plugins/autogrow/plugin.js
rich-0.0.7 vendor/assets/ckeditor/ckeditor/plugins/autogrow/plugin.js
rich-0.0.7 test/dummy/public/assets/ckeditor/plugins/autogrow/plugin.js
rich-0.0.6 vendor/assets/ckeditor/ckeditor/plugins/autogrow/plugin.js
quic_cms-0.1.3 app/assets/javascripts/quic_cms/ckeditor/plugins/autogrow/plugin.js
quic_cms-0.1.2 app/assets/javascripts/quic_cms/ckeditor/plugins/autogrow/plugin.js
quic_cms-0.1.1 app/assets/javascripts/quic_cms/ckeditor/plugins/autogrow/plugin.js
quic_cms-0.1.0 app/assets/javascripts/quic_cms/ckeditor/plugins/autogrow/plugin.js
quic_cms-0.0.9 app/assets/javascripts/quic_cms/ckeditor/plugins/autogrow/plugin.js
rich-0.0.4 test/dummy/public/assets/ckeditor/plugins/autogrow/plugin.js
rich-0.0.4 vendor/assets/ckeditor/ckeditor/plugins/autogrow/plugin.js
rich-0.0.3 vendor/assets/ckeditor/ckeditor/plugins/autogrow/plugin.js
qwerty-0.0.1.pre app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js
ckeditor_assets-3.6.2 vendor/assets/ckeditor/ckeditor/plugins/autogrow/plugin.js