Hi,
Does any know how to modify the Styles menus width?
And, when the cursor is in a paragraph that is using a CSS in the styles menu, is it suppose to select that style automatically in the styles menu?
Thanks in advance.
Does any know how to modify the Styles menus width?
And, when the cursor is in a paragraph that is using a CSS in the styles menu, is it suppose to select that style automatically in the styles menu?
Thanks in advance.
RE: Toolbar | Styles width
search for 'FCKToolbarStyleCombo.prototype.CreateItems = function( targetSpecialCombo )
' and add the line 'targetSpecialCombo.FieldWidth = 70 ;' above in the method. You can replace the 70 with the pixellength you want the combo to be.
But oke, this is the source and you know now what code to look for, but to have it show up in your browser you'll have to alter the 'compressed' code files. These are the files 'fckeditorcode_gecko_2.js' and 'fckeditorcode_ie_2.js' in the directory 'editor/js'. Search now for 'FCKToolbarStyleCombo.prototype.CreateItems=function(A){' and add the line directly after the match. do this for both the files.
Your styles combo now has the length you entered.
Style fonts fontformat fontsize - combo size
Comparable to setting the styles width, the fonts-, fontformat-, and fontsize- combo, specialcombo, pull-down menu or whatever you want to call them, can be modified. (Not sure of FCKeditor2.3 provides a better way to do this)
The line I said that needed to be added in de 'compressed' code needs to be altered a bit. Where the line was 'targetSpecialCombo.FieldWidth = 70 ;' for the source, this needs to be 'A.FieldWidth=70;' in the 'compressed' code.
For the other combos, follow the same instructions:
(combo - search in code - line in code - search in 'compressed' code - line in 'compressed' code)
FontFormat - 'FCKToolbarFontFormatCombo.prototype.CreateItems = function( targetSpecialCombo )' - 'targetSpecialCombo.FieldWidth = 70 ;' - 'FCKToolbarFontFormatCombo.prototype.CreateItems=function(A){' - A.FieldWidth=70;
Fonts - 'FCKToolbarFontsCombo.prototype.CreateItems = function( targetSpecialCombo )' - 'targetSpecialCombo.FieldWidth = 70 ;' - 'FCKToolbarFontsCombo.prototype.CreateItems=function(A){' - 'A.FieldWidth=70;'
For the Fontsize combo, the FieldWidth property is already set, so you can just alter the pixelwidth.
Fontsize - 'FCKToolbarFontSizeCombo.prototype.CreateItems = function( targetSpecialCombo )' - 'targetSpecialCombo.FieldWidth = 70 ;' - 'FCKToolbarFontSizeCombo.prototype.CreateItems=function(A){' - 'A.FieldWidth=70;'
Paul
http://fckplugins.saulmade.nl/
http://fckskins.saulmade.nl/