You can set the default width of special combo's, which drop-down are, in 'editor/_source/classes/fcktoolbarspecialcombo.js' or you can set the width individually for each of the drop-downs by setting the next line in the function 'prototype.CreateItems' : 'targetSpecialCombo.FieldWidth = thePixelWidthYouWantInt;' where you fill in the thePixelWidthYouWantInt with a integer... This would be the files 'fcktoolbarfontformatcombo.js', 'fcktoolbarfontscombo.js', 'fcktoolbarfontsizecombo.js' and 'fcktoolbarstylecombo.js' See 'fcktoolbarfontsizecombo.js' for an example for setting the width...
...did you consider that the files in /_source are only for development and are only used, if you exchange fckeditor.html with fckeditor.original.html?
if you want to change the behavior in production system you have to do your changes in the files \fckeditor\editor\js... -> the source-files are compressed into these files... regards, j:)rgen.
RE: Drop down width
This would be the files 'fcktoolbarfontformatcombo.js', 'fcktoolbarfontscombo.js', 'fcktoolbarfontsizecombo.js' and 'fcktoolbarstylecombo.js'
See 'fcktoolbarfontsizecombo.js' for an example for setting the width...
RE: Drop down width
In fcktoolbarfontsizecombo.js I changed the line you specified to the following:
targetSpecialCombo.FieldWidth = 20 ;
I've cleared the cache and it isn't working in either FF or IE. Any thoughts? Is there another file overriding this?
RE: Drop down width
if you want to change the behavior in production system you have to do your changes in the files \fckeditor\editor\js... -> the source-files are compressed into these files...
regards, j:)rgen.
RE: Drop down width
http://sourceforge.net/forum/forum.php? ... _id=257180
RE: Drop down width
To change the field width of the Fonts dropdown I added 'A.FieldWidth=80;' to the FCKToolbarFontsCombo.prototype.CreateItems function.
To change the field width of the Font Size dropdown, i changed 'A.FieldWidth=80;' in the FCKToolbarFontSizeCombo.prototype.CreateItems function.
Thanks again!
RE: Drop down width