Sha256: ae6f56556cef53b10d83b6b7fb8c2fc41ea4fde8c215a888f29f75f39849f16b

Contents?: true

Size: 1.53 KB

Versions: 22

Compression:

Stored size: 1.53 KB

Contents

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

CKEDITOR.plugins.add('iframedialog',{requires:['dialog'],onLoad:function(){CKEDITOR.dialog.addIframe=function(a,b,c,d,e,f){var g={type:'iframe',src:c,width:'100%',height:'100%'};if(typeof f=='function')g.onContentLoad=f;var h={title:b,minWidth:d,minHeight:e,contents:[{id:'iframe',label:b,expand:true,elements:[g]}]};return this.add(a,function(){return h;});};(function(){var a=function(b,c,d){if(arguments.length<3)return;var e=this._||(this._={}),f=c.onContentLoad&&CKEDITOR.tools.bind(c.onContentLoad,this),g=CKEDITOR.tools.cssLength(c.width),h=CKEDITOR.tools.cssLength(c.height);e.frameId=CKEDITOR.tools.getNextId()+'_iframe';b.on('load',function(){var k=CKEDITOR.document.getById(e.frameId),l=k.getParent();l.setStyles({width:g,height:h});});var i={src:'%2',id:e.frameId,frameborder:0,allowtransparency:true},j=[];if(typeof c.onContentLoad=='function')i.onload='CKEDITOR.tools.callFunction(%1);';CKEDITOR.ui.dialog.uiElement.call(this,b,c,j,'iframe',{width:g,height:h},i,'');d.push('<div style="width:'+g+';height:'+h+';" id="'+this.domId+'"></div>');j=j.join('');b.on('show',function(){var k=CKEDITOR.document.getById(e.frameId),l=k.getParent(),m=CKEDITOR.tools.addFunction(f),n=j.replace('%1',m).replace('%2',CKEDITOR.tools.htmlEncode(c.src));l.setHtml(n);});};a.prototype=new CKEDITOR.ui.dialog.uiElement();CKEDITOR.dialog.addUIElement('iframe',{build:function(b,c,d){return new a(b,c,d);}});})();}});

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
porthos-3.0.0.beta2 app/assets/javascripts/lib/ckeditor/plugins/iframedialog/plugin.js
porthos-3.0.0.beta1 app/assets/javascripts/lib/ckeditor/plugins/iframedialog/plugin.js
porthos-3.0.0.beta app/assets/javascripts/lib/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.6.8 app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.6.6 app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.6.5 app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.6.3 app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.6.2 app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.6.1 app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.6.0 app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.5.2 lib/generators/social_stream/base/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.5.1 lib/generators/social_stream/base/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-base-0.5.0 lib/generators/social_stream/base/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-0.4.6 lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-0.4.5 lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js
spree-cms-0.2.1 public/ckeditor/plugins/iframedialog/plugin.js
spree-cms-0.2.0 public/ckeditor/plugins/iframedialog/plugin.js
social_stream-0.4.4 lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-0.4.3 lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js
social_stream-0.4.2 lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js