The sizes for all dialogs are set in the file fckeditor/editor/_source/internals/fckcommands.js , but as you'll notice this is the unpacked source, so changes in this file won't affect your FCKeditor install.
To change the dialogs their sizes for your installation you'll have to repack the source or change the packed source.
To edit the packed source you'll have to edit two files:
fckeditor/editor/js/fckeditorcode_gecko.js
fckeditor/editor/js/fckeditorcode_ie.js
Search for the path of the dialog you want to resize (use the unpacked source as a reference for this), then change the width and height dimensions of it.
E.g.
To change the image dialog its size search for 'dialog/fck_image.html' within the two files and you'll find the command:
FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);
Now just change 450 (width) and 400 (height) to whatever dimensions you like, resave and clear or disable your cache before testing.
To change the dialogs their sizes for your installation you'll have to repack the source or change the packed source.
To edit the packed source you'll have to edit two files:
fckeditor/editor/js/fckeditorcode_gecko.js
fckeditor/editor/js/fckeditorcode_ie.js
Search for the path of the dialog you want to resize (use the unpacked source as a reference for this), then change the width and height dimensions of it.
E.g.
To change the image dialog its size search for 'dialog/fck_image.html' within the two files and you'll find the command:
FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);
Now just change 450 (width) and 400 (height) to whatever dimensions you like, resave and clear or disable your cache before testing.
RE: HOWTO - Set dialog sizes
I'll go make a followup post over there as well.
Thanks again!
Rob
RE: HOWTO - Set dialog sizes
Thanks for this update, Saul. However, I have a similar question for your ImageManager plugin. I have searched this forum and saw that a few other people have the same issue, but have not found a solution (sorry if I missed it).
How do I go about changing the size of your ImageManager popup ?. For me its just a bit too small. Under both Firefox 2.0, and IE6, and IE7, the buttons do not appear ! (they are off the screen, and I need to manually enlarge the window). The window height is too small (and just a bit too narrow too!). This happens on my install, but also on your demo site.
Here is an example : http://www.benoithellings.be/test/image ... _popup.jpg
Is there anything I can do ? You original HOW TO was for the original installation. What about your ImageManager plugin? I searched your files and could not see where to modify the size. Can you help ?.
Thank you for any help.
P.S. FCKEditor is by far the best around, and Saul your plugins are absolutely brilliant. Pure art on both sides. Thanks for all your efforts.
RE: HOWTO - Set dialog sizes
Glad that I could help.
Christophe,
Thanks for your kind words.
Indeed the ImageManager works differently. For the manager window you need to be in 'ImageManager/manager.php' and change the dimensions in 'window.resizeTo(600, 460);' (line line 31); for the editor window this is the string 'window.resizeTo(673, 531);' (line 28) in file 'ImageManager/editor.php'.
RE: HOWTO - Set dialog sizes
Thanks, Saul. How could I have missed that... )
Changing the above works great in Firefox, but something strange happens in IE7: the width get enlarged, but the HEIGHT remained unchanged !. Even if I changed the figure to, for example, window.resizeTo(700, 700), the ImageManager window gets larger, but not taller (I did clear the IE cache and forced reload by CTRL+F5).
Any idea of what is happening ? Can you help ? (
again, it works great in Firefox. I dont know yet about IE6, I shall try)
Thanks for any assistance. Christophe.
RE: HOWTO - Set dialog sizes
But hmmm, 700x700 is no problem for me, but while trying larger values I found out that IE just doesn't seem to be willing to stretch the window behind the point where the bottom border falls out of the screen. So what I think what happens is that with you the ImageManager window is created quite close to the bottom of your window so that IE limits its height. Try adding the command 'dlg.moveTo(0,0);' just below the creation of the window on line 211 in 'ImageManager/fckplugin.js' and see if that helps...
RE: HOWTO - Set dialog sizes
RE: HOWTO - Set dialog sizes
(for info, I found that 'window.resizeTo(640, 520);' seems to be the best setting in 'ImageManager/manager.php').
A great day to all.
Christophe
Re: HOWTO - Set dialog sizes
So far:
'dialog/fck_image.html'
original - 450,400
modified 2 places both files - 600,400 (looks ok)
'dialog/fck_image.html'
original - 400,330
modified 1 place both files - 600,330 (looks bad but works)
Re: HOWTO - Set dialog sizes
I noticed that sajax works well with pages in the dialog directory. They use:
var oEditor = window.parent.InnerDialogLoaded();
Then call sajax by: oEditor.window.parent.sajax_do_call( 'wgMyFunction', [ajaxArg], UpdateImageAjax );
I tried to use sajax_do_call outside the dialog window with the ImageManager using:
oEditor = FCKeditorAPI.GetInstance('InstanceName').EditorWindow.parent;
oEditor.sajax_do_call( 'wgMyFunction', [ajaxArg], UpdateImageAjax );
But get oEditor is not a function error.
Is there a way to use sajax_do_call outside the dialog window with the ImageManager?
Please help...