Hi
Last time I posted this forum, I got a very quick reply. Thanks. This time my problem is, that I want to resize the dialog popup window. I have tried to change the numbers 400 and 330 in this line:
case 'Link' : oCommand = new FCKDialogCommand( 'Link' , FCKLang.DlgLnkWindowTitle , 'dialog/fck_link.html' , 400, 330, FCK.GetNamedCommandState, 'CreateLink' ) ; break ;
in the file fckcommands.js, but it is not working. (I have cleared the cache...) Please help...
Last time I posted this forum, I got a very quick reply. Thanks. This time my problem is, that I want to resize the dialog popup window. I have tried to change the numbers 400 and 330 in this line:
case 'Link' : oCommand = new FCKDialogCommand( 'Link' , FCKLang.DlgLnkWindowTitle , 'dialog/fck_link.html' , 400, 330, FCK.GetNamedCommandState, 'CreateLink' ) ; break ;
in the file fckcommands.js, but it is not working. (I have cleared the cache...) Please help...
RE: Size of dialog-windows
Anyone with the solution?
It would be nice to have a link on the site..
RE: Size of dialog-windows
RE: Size of dialog-windows
RE: Size of dialog-windows
Well, here's a hack to change the size of the dialog window:
in dialog.html,
find:<body onload="LoadInnerDialog();"
change to:
<body onload="LoadInnerDialog();window.resizeTo(screen.width-90,screen.height-200);window.moveTo(5,5);"
now, just have to play with the inner stuff. I needed to change the size of the image preview area:
in fck_dialog_common.css,
play with the first class: .ImagePreviewArea
--
j
RE: Size of dialog-windows
Your specific changes should be done in the files:
- fckeditorcode_gecko_2.js
- fckeditorcode_ie_2.js
Search for the string 'new FCKDialogCommand('Link'' and change the dialog dimensions you'll find a bit further on the matched line. Do this for both files to see your changes in both IE and gecko based browsers, such as firefox.
To autoresize a dialog (e.g. when content size changes) you can call a function:
- SetAutoSize( true ) ;
- window.parent.SetAutoSize( true ) ; => when you're in a frame in the dialog...
RE: Size of dialog-windows
That way is so much easier to test any changes, and when you're done, if you use windows you can use the FCKeditor.packager.exe to create the new compressed files.
RE: Size of dialog-windows
thanks for the info :p
(is that in the wiki somewhere?)
RE: Size of dialog-windows
I must have read that somewhere, and the wiki seems like a logical place as there isn't so much documentation anywhere else.
So, here it is: http://wiki.fckeditor.net/Developer%27s ... ompression