When I make an iframe dialog, the dialog gets the right size. However the iframe inside it, only uses the full width, not the full height. Does anyone know how to solve this?
Code used:
CKEDITOR.dialog.addIframe('page_browser_dialog', 'Page browser','url here',750,480,function(){/*oniframeload*/})
Problem occurs in:
Firefox
Code used:
CKEDITOR.dialog.addIframe('page_browser_dialog', 'Page browser','url here',750,480,function(){/*oniframeload*/})
Problem occurs in:
Firefox

Re: Iframe dialog height of iframe
I'm getting the same problem here. Did you find any solution for it?
Best regards,
Marcelo from Brazil.
Re: Iframe dialog height of iframe
/* * @example An iframe-based dialog with frame window fit dialog size. */ ( function() { CKEDITOR.plugins.add( 'myiframedialog', { requires: [ 'iframedialog' ], init: function( editor ) { var height = 480, width = 750; CKEDITOR.dialog.add( 'myiframedialogDialog', function () { return { title : 'myiframedialog Dialog', minWidth : width, minHeight : height, contents : [ { id : 'iframe', label : 'Insert myiframedialog Movie...', expand : true, elements : [ { type : 'iframe', src : 'http://ckeditor.com', width : width, height : CKEDITOR.env.ie ? height - 10 : height , onContentLoad : function() { } } ] } ], onOk : function() { // Notify your iframe scripts here... } }; } ); editor.addCommand( 'myiframedialog', new CKEDITOR.dialogCommand( 'myiframedialogDialog' ) ); editor.ui.addButton( 'myiframedialog', { label: 'My Iframe in dialog', command: 'myiframedialog', icon: this.path + 'images/icon.gif' } ); } } ); } )();Re: Iframe dialog height of iframe
I've not tried your solution yet, but I'll do it as soon as possible.
For now, I simply changed the theme from Kama to V2, which does not implement a iframe with "height:100%"
Best regards,
Marcelo from Brazil.
Re: Iframe dialog height of iframe
Re: Iframe dialog height of iframe
This is working in IE8 and FF3.6. I haven't tried other browsers yet. Still at the beginning of my evaluation of CKEditor before we purchase a license.
just add the function as the last parameter (or the line of code if you are already using the function)
CKEDITOR.dialog.addIframe('iframe_Dialog', 'Iframe, url, 450, // width 370, // height function () { // fix for bug in CKEditor where iframe height is not 100%. // FYI - this is Prototype.js based code // it is basically finding the iframe element and then finding it's ancestor with a class of "cke_dialog_page_content" and setting it's height to 100%. $(this.domId).up('.cke_dialog_page_contents').setStyle({ height: '100%' }); });